Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

runtime.version

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

N/runtime Module
runtime.version
Property Description: The version of NetSuite that the method is called in. For example, the  runtime.version property in an account running NetSuite 2015.2 is 2015.2. For example, you can use this method when installing a bundle in another NetSuite accounts to find out the version number before installing the bundle.
Type: string (read-only)
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.version

Example:

// Code Example 1
// Add additional code
//...
log.debug('Current NetSuite version: ' + runtime.version);
//...
// Add additional code

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