Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=runtime.envType for more information.
N/runtime Module
runtime.envType
Property Description:
The current environment in which the script is executing.
This property uses values from the runtime.EnvType enum.
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.envType
Example:
// Code Example 1
// Add additional code
//...
log.debug('Environment for current user: ' + JSON.stringify(runtime.envType));
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296531123.html