runtime.ContextType
JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.
Enum Description |
Holds the execution context values for script triggers. This is the type for the runtime.executionContext property. |
Module |
|
Sibling Module Members |
|
Since |
2015.2 |
Values
For a description of each execution context value, see Execution Context Types.
Value |
Sets runtime.executionContext Property To |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/runtime Module Script Samples.
//Add additional code
...
if (runtime.executionContext !== runtime.ContextType.USEREVENT)
return;
...
//Add additional code