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