Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and 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:
Tagged:
0