Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
SuiteScript 2.0: Checking if a feature is enabled
Did you know?
SuiteScript 2.0 has a method under N/runtime module that can determine if a particular feature is enabled in a NetSuite account. The method is called runtime.isFeatureInEffect(options). It checks the features that appear on the Enabled Features page at Setup > Company > Enabled Features. It can be used to notify users regarding the state of a feature prior to bundle installation.
How?
The method only requires the internal ID of the feature to check. The list of feature internal IDs can be found in SuiteAnswers 10417 - Feature Names and IDs. Take a look at some of the examples below: