Nick Lorenson
02/19/2019, 6:31 PMNick Lorenson
02/19/2019, 6:34 PMApplies To
Vendor Bill, the Status
is set to Released, the Role is set to Administrator
Nick Lorenson
02/19/2019, 6:34 PMAudience
Nick Lorenson
02/19/2019, 6:35 PMNick Lorenson
02/19/2019, 6:35 PMNick Lorenson
02/19/2019, 6:36 PMNick Lorenson
02/19/2019, 6:36 PMKris Jones
02/19/2019, 6:39 PMNick Lorenson
02/19/2019, 6:42 PMNick Lorenson
02/19/2019, 6:43 PM/**
* Use SavedSearch results as target list for mass delete.
*
* NetSuite will loop through each record in your search
* and pass the record type and id for deletion
* Try / Catch is useful if you wish to handle potential errors
*
* Lists > Mass Update > Mass Updates > Custom Updates
*/
function MassDelete(record_type, record_id)
{
try {
nlapiDeleteRecord(record_type, record_id)
} catch (err) {
var errMessage = err;
if(err instanceof nlobjError) {
errMessage = errMessage + ' ' + err.getDetails() + ' ' + 'Failed to Delete ID : ' + record_id;
}
nlapiLogExecution('ERROR', 'Error', errMessage);
return err
}
}
Nick Lorenson
02/19/2019, 6:43 PMNick Lorenson
02/19/2019, 6:43 PMKris Jones
02/19/2019, 6:45 PMNick Lorenson
02/19/2019, 6:45 PMNick Lorenson
02/19/2019, 6:45 PMNick Lorenson
02/19/2019, 6:49 PMbattk
02/19/2019, 6:52 PMNick Lorenson
02/19/2019, 6:52 PMNick Lorenson
02/19/2019, 6:53 PMKris Jones
02/19/2019, 6:55 PMNick Lorenson
02/19/2019, 6:56 PMNick Lorenson
02/19/2019, 7:34 PM