runtime.Script

Note:

The content in this help topic pertains to SuiteScript 2.0.

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.x Script Types.

Module

N/runtime Module

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 

        

Related Topics

N/runtime Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices