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