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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and 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.
0