Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Script.id for more information.
N/runtime Module
Script.id
Property Description:
The script ID for the currently executing script.
Type:
string (read-only)
Supported Script Types:
Client and server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/runtime Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Script.id
Example:
// Code Example 1
// Add additional code
//...
var scriptObj = runtime.getCurrentScript();
log.debug('Script Id: ' + scriptObj.id);
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296662491.html