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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
How Approve Sales Order from Script
Hi
I want to approve sales order with a script, I've read all the related threads and I do what they say, but nothing seems to work.
I been having this problem for a while and and it just has begun to make me angry, I've trying for several options and I don't know what else to do.
The last time, I put this code:
nlapiSubmitField(recType,recId,'orderstatus','B');
nlapiSubmitField(recType,recId,'origstatus','B');
nlapiSubmitField(recType,recId,'statusRef','pendingFulfillment');
nlapiSubmitRecord(record);
But it doesn't work, and something weird is that in the debugger it WORKS!!!!.
if you... if anyone can help I'll appreciate it.
0