Discussions
SuiteScript parameters
We have a script that takes several parameters. We want to be able to use this script across several different NetSuite accounts such that depending on the account, only some parameters will be used in a given account.
The current way to access a script parameter is to use the parameter name directly in the script. So if the parameter name is custscript_subject, then you will use it in the script directly as custscript_subject.
However, this implies that since this parameter is being used directly in the script, every deployment of this script (across multipple accounts) MUST define this parameter, even though in a specific account this parameter will not be used.