Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

Script.deploymentId

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

N/runtime Module
Script.deploymentId
Property Description: The deployment ID for the script deployment on the currently executing script.
Type: string (read-only)
Supported Script Types: 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.deploymentId

Example:

// Code Example 1
// Add additional code
//...
var scriptObj = runtime.getCurrentScript();
log.debug('Deployment Id: ' + scriptObj.deploymentId);
//...
// Add additional code

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