runtime.Script
Object Description |
Encapsulates the runtime settings of the currently executing script. Use runtime.getCurrentScript() to access this object. |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2015.2 |
Syntax
Important:
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/runtime Module Script Samples.
// Add additional code
...
var scriptObj = runtime.getCurrentScript(); //scriptObj is a runtime.Script object
log.debug('Script ID: ' + scriptObj.id);
...
// Add additional code