Levi Pruss
06/13/2025, 2:36 PMCeligo AI
06/13/2025, 2:36 PMAI generated answer (using internal Slack threads):To mass delete item groups in NetSuite, you can use a custom Mass Update script. Here's a general outline of the steps you would need to follow: 1. Create a new SuiteScript file. This will be a Mass Update script type. 2. In the
each
function of your script, use the record.delete
method to delete each record that meets your criteria.
3. Deploy the Mass Update script to the Item Group record type.
4. From the NetSuite UI, initiate a Mass Update and create a Saved Search with the criteria for the item groups you wish to delete.
Here's a simplified example of what the script might look like:
javascript
/**
* @NApiVersion 2.x
* @NScriptType MassUpdateScript
*/
define(['N/record'], function(record) {
function each(params) {
record.delete({
type: params.type,
id: params.id
});
}
return {
each: each
};
});
Please note that this script will delete all item groups that meet the criteria of your Saved Search. Be sure to double-check your criteria to avoid deleting any item groups unintentionally.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
06/13/2025, 2:36 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819864869
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818414092
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815800786
Celigo AI
06/13/2025, 2:36 PM