Modules
Objects/Functions
SuiteScript 2.0
{runtime}.isFeatureInEffect({feature: {string*}})
N/runtime Module
runtime.isFeatureInEffect()
Method Description:
Use this method to determine if a particular feature is enabled in a NetSuite account. These are the features that appear on the Enable Features page at Setup > Company > Setup Tasks > Enable Features.
Returns:
boolean
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.isFeatureInEffect(options)
Example:
// Code Example 1
// Add additional code
//...
var featureInEffect = runtime.isFeatureInEffect({
feature: 'ADVBILLING'
});
log.debug('Advanced Billing feature is enabled: ' + featureInEffect);
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296530135.html