Identify ways to ensure that scripts function properly across different environments. Flashcards
What N/runtime module function would we use to check for the enabled status of an account wide enabled feature?
isFeatureInEffect()
How would we use the N/runtime module to get the script parameters?
We would use the function: getCurrentScript().getParameter()
True or False?
We can use the N/runtime module to get data related to the current user (e.g. role, id, name, etc…)
True
What kind of config records is the N/config module capable of loading?(10)
- ACCOUNTING_PERIODS
- ACCOUNTING_PREFERENCES
- COMPANY_INFORMATION
- COMPANY_PREFERENCES
- FEATURES
- MANUFACTURING PREFERENCES
- TAX_PERIODS
- TIME_POST
- TIME_VOID
- USER_PREFERENCES
True or False?
We are unable to get check the current user’s permission level for a specific permission using the N/runtime module
False
We CAN check the current user’s permission level for a specific permission
When using the config.load function of the N/config module, what object is returned?
A record.Record object
The N/runtime module can be used to get runtime settings for what 3 things?
Can be used to view the runtime settings for the script, session, or the user.
True or False?
Despite loading config records, when using the N/config module, we do not need to load the N/record module.
True.
True or False?
We can get user preferences using the N/runtime module
True