how to check with script which product is running ...
# suitescript
z
how to check with script which product is running : NetSuite / NetSuite Oneworld... I found version in runtime object, account id...is there any workaround
s
Could you use the
runtime.isFeatureInEffect(options)
function and check for a oneworld specific feature being enabled?
s
^ with subsidiary in there
Copy code
var subCheck = runtime.isFeatureInEffect({
            feature: 'SUBSIDIARIES'
        });
👍 2
m
I was under the impression that at some point NetSuite started provisioning all accounts as "one world" but limited to one subsidiary. So depending on your end goal you might need to count the actual number of subsidiaries instead of just checking the feature.
z
exactly 😎... I am writing some scripts for clients which have "non one world edition". I have oneworld development account and at the first moment everything seemed to be ok. On the form with subsidiary field client have option to choose "parent company"?! No problem, they accepted that as normal... But then I discovered problem with saved search created during script execution and consolidate rate need to be excluded... ups.. that exists only for Oneworld edition