Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

runtime.getCurrentScript()

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

N/runtime Module
runtime.getCurrentScript()
Method Description: Returns a runtime.Script object that represents the currently executing script. Use this method to get properties and parameters of the currently executing script and script deployment. If you want to get properties for the session or user, use runtime.getCurrentSession() or runtime.getCurrentUser() instead.
Returns: runtime.Script
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=runtime.getCurrentScript()

Example:

// Code Example 1
// Add additional code
//...
var scriptObj = runtime.getCurrentScript();
//...
// Add additional code

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