Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.