Identify ways to ensure that scripts function properly across different environments. Flashcards

1
Q

The N/runtime module can be used to get runtime settings for what 3 things?

A

Can be used to view the runtime settings for the script, session, or the user.

N/runtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How would we use the N/runtime module to get the script parameters?

A

We would use the function: getCurrentScript().getParameter()

General Development Best Practices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or False?

We can use the N/runtime module to get data related to the current user (e.g. role, id, name, etc…)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False?

We are unable to get check the current user’s permission level for a specific permission using the N/runtime module

A

False

We CAN check the current user’s permission level for a specific permission

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or False?

We can get user preferences using the N/runtime module

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What N/runtime module function would we use to check for the enabled status of an account wide enabled feature?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

N/config can be used to what?

A

Can be used to access NetSuite config settings

N/config

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What kind of config records is the N/config module capable of loading?(10)

A
  • ACCOUNTING_PERIODS
  • ACCOUNTING_PREFERENCES
  • COMPANY_INFORMATION
  • COMPANY_PREFERENCES
  • FEATURES
  • MANUFACTURING PREFERENCES
  • TAX_PERIODS
  • TIME_POST
  • TIME_VOID
  • USER_PREFERENCES
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When using the config.load function of the N/config module, what object is returned?

A

A record.Record object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

True or False?

Despite loading config records, when using the N/config module, we do not need to load the N/record module.

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly