Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

runtime.Script

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=runtime.Script for more information.

N/runtime Module
runtime.Script
Object Description: Encapsulates the runtime settings of the currently executing script. Use runtime.getCurrentScript() to access this object. For a complete list of this object’s methods and properties, see Script Object Members.
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=runtime.Script

Example:

// Code Example 1
// Add additional code
//...
var scriptObj = runtime.getCurrentScript(); //scriptObj is a runtime.Script object
log.debug('Script ID: ' + scriptObj.id);
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296527813.html