Is there a way to `query` NetSuite to determine if...
# suiteql
d
Is there a way to
query
NetSuite to determine if its a OneWorld or Standard edition?
m
There is the CompanyFeatureSetup table but I don’t see OneWorld anywhere on there. I usually have an inline if statement in my query to check if it’s enabled.
Copy code
const sql = `SELECT 
            id,
            ${commonUtil.isEnabled.oneWorld() ? "custom_subsidiary_field_id," : ""}
            FROM
                custom_record
        `;
Copy code
//commonUtil File
lib.isEnabled = {
        oneWorld: () => {
            return runtime.isFeatureInEffect({ feature: "SUBSIDIARIES" });
        },
    };