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
Retrieving script parameters without using the parameter name
I have a function in a script which I will create as a Scheduled Server Script. The function called needs a script parameter. I understand how to add a script parameter, and how to retrieve the parameter value using nlapiGetContext().getSetting(‘SCRIPT’,’custscript...’);
However, the function I am trying to deploy is a generic helper function, that I wish to be able to use in multiple Netsuite solutions, potentially with a different second script each time – this can be handled by making a new ‘Server Script’ instance each time, using the same Library Script and a different code script (or vice versa).
0