Jaime Requena
–
December 19, 2022
NetSuite has a script type called “Mass Update”. The script allows the user to execute custom logic on each record in the search. NetSuite gives you 1000 governance points for each record in the search. This gives you plenty of governance to do what you need to do on a per record basis. In this article I will demonstrate how to create, deploy, and run a mass update script to delete records.
/**
*@NApiVersion 2.1
*@NScriptType MassUpdateScript
*/
define(['N/record'], (record) => {
function each(params) {
record.delete({type: params.type,id: params.id});
}
return {
each: each
};
});




The mass update script type is useful for executing custom logic against a search result. Do you need help building a Mass Update script for NetSuite? Please contact us here to set up a consultation.
Do not hesitate to contact us. We’re a team of experts ready to talk to you.