N/recordContext Module
Use the N/recordContext module to get all the available context types of the record, such as localization
. The localization
context type indicates which country a script is using for execution. You can also use the N/recordContext module to create conditional statements within a script so that the script behaves differently based on the context.
For more information about localization context, see Localization Context.
In This Help Topic
N/recordContext Module Members
Member Type |
Name |
Return Type / Value Type |
Supported Script Types |
Description |
---|---|---|---|---|
Object |
Object (read-only) |
Client and server scripts |
Contains key-value pairs that represent context types and their values. |
|
Method |
Client and server scripts |
Returns the record context object for a record. |
||
Enum |
enum (read-only) |
Client and server scripts |
Holds the values for the context type. |