KnotKnick
04/20/2023, 2:03 PMMike Robbins
04/20/2023, 2:10 PMqueueId
property on the CSV import task before you submit()
it.
https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_454650817870.htmlMike Robbins
04/20/2023, 2:11 PMKnotKnick
04/20/2023, 2:26 PMKnotKnick
04/20/2023, 2:28 PMMike Robbins
04/20/2023, 3:06 PMfileIds.forEach(function(fileId, index) {
var maxQueueCount = 5;
// Create your import task here
importTask.queueId = (index % maxQueueCount) + 1; // Since maxQueueCount is 5, this will result in a value of 1 to 5 and then repeat for as many files that you have.
importTask.submit();
});
KnotKnick
04/20/2023, 4:37 PM