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.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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