Delete the records from Netsuite using the mass update script

Purpose – Delete the records from Netsuite
Type – Mass Update
How to use
– 1.Create a script record
– 2.Deploy for the record type deleted
– 3.Perform mass update for the records.

CODE

/**
* @NApiVersion 2.x
* @NScriptType MassUpdateScript
* @NModuleScope SameAccount
*/
/*
Mass delete any record without exception
*/
define(['N/record'],
function(record) {
return {
each:record.delete
};
});

1 comment

  1. Be very care full when you use this script as the record type is not defined if you are applying this to wrong record type all the records will get deleted!

Leave a Reply to Jismi Jobin Cancel reply

Your email address will not be published. Required fields are marked *