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.
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