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!
Rookie script writer - Error on deployment
Hi there. I'm trying to set up a scheduled script and I'm getting an error that reads "SSS_MISSING_REQD_ARGUMENT" when it runs.
I am not a script wizard like so many of you are. I took this from an existing script that does work and tried (and failed) to re-purpose it. Can any of you geniuses see what I'm doing wrong at a glance? I really appreciate the help.
function scheduledScript() { var searchid = '2921'; var searchresults = nlapiSearchRecord('transaction', searchid); for ( var i = 0; searchresults != null && i < searchresults.length; i++ ) { var result = searchresults[i]; var customerid = result.getValue('id',null, 'group'); var amount = result.getValue('amount',null,'sum' ); { nlapiSubmitField('customer', customerid, 'custentity_2017_soup', amount ); } } } 0