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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Set Orderstatus to closed on RMAs in Scheduled script
I am running following script as scheduled script and I am trying to close all Pending Refund status RMAs. But getting below error.
var ClosedRMA = 'RtnAuth:H';
logger.debug('processClosePendingRefundRMAScheduled ', 'pendingRefundRma: '+pendingRefundRma);
var pendingRefundRmaRec = nlapiLoadRecord('returnauthorization', pendingRefundRma);
pendingRefundRmaRec.setFieldValue("orderstatus",ClosedRMA);
var closedRMArec = nlapiSubmitRecord(pendingRefundRmaRec);
INVALID_KEY_OR_REF 2/12/2010 12:02 am Srini Kanchinatham Invalid orderstatus reference key RtnAuth:H.
0