Ron
03/10/2025, 12:04 PMCeligo AI
03/10/2025, 12:04 PMAI generated answer (using internal Slack threads):Yes, there is a way to mass delete Sales Orders in NetSuite. You can achieve this by creating a custom mass update script and deploying it against the Sales Order record type. Once deployed, it will be listed as a custom mass update within the standard mass update screen. Here is a simple example of a mass update script:
javascript
/**
* @NApiVersion 2.1
* @NScriptType MassUpdateScript
* @NModuleScope Public
*/
define(['N/log', 'N/record'], function(log, record) {
function each(params) {
record.delete({
type: params.type,
id: params.id
});
}
return {
each: each
};
});
This script will delete each Sales Order record that is included in the mass update. Please be aware that this operation is irreversible, so make sure you have a backup or are certain you want to delete these records before running the script.
******
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
03/10/2025, 12:05 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84992379
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838213801
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828995228
Celigo AI
03/10/2025, 12:05 PM