Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Approve Sales Order using SuiteScript
I would like to approve a Sales Order via a Scheduled Script.
I assumed that all I needed to do is set the status to "pendingFulfillment", but that is not working.
I currently have:
var soRecord = nlapiLoadRecord('salesorder',soId);
soRecord.setFieldValue('status','pendingFulfillment');
var soIdFlag = nlapiSubmitRecord(soRecord,true);
Any help would be appreciated.
0