Modules
Objects/Functions
SuiteScript 2.0
{Script}.getParameter({name: {string*}})
N/runtime Module
Script.getParameter()
Method Description:
Returns the value of a script parameter for the currently executing script.
For information on script parameters, see Creating Script Parameters Overview.
Returns:
number | Date | string | boolean
Supported Script Types:
Client and server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/runtime Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Script.getParameter(options)
Example:
// Code Example 1
// Add additional code
//...
var scriptObj = runtime.getCurrentScript();
log.debug('Script parameter of custscript1: ' +
scriptObj.getParameter({name: 'custscript1'}));
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296661592.html