runtime.ContextType

Note:

The content in this help topic pertains to SuiteScript 2.0.

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.0 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.

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/runtime Module

Since

2015.2

Values

For a description of each execution context value, see Execution Context Types.

Value

Sets runtime.executionContext Property To

ACTION

ACTION

ADVANCEDREVREC

ADVANCEDREVREC

BANKCONNECTIVITY

BANKCONNECTIVITY

BANKSTATEMENTPARSER

BANKSTATEMENTPARSER

BUNDLE_INSTALLATION

BUNDLEINSTALLATION

CLIENT

CLIENT

CONSOLRATEADJUSTOR

CONSOLRATEADJUSTOR

CSV_IMPORT

CSVIMPORT

CUSTOMGLLINES

CUSTOMGLLINES

CUSTOM_MASSUPDATE

CUSTOMMASSUPDATE

DATASETBUILDER

DATASETBUILDER

DEBUGGER

DEBUGGER

EMAIL_CAPTURE

EMAILCAPTURE

FICONNECTIVITY

FICONNECTIVITY

FIPARSER

FIPARSER

MAP_REDUCE

MAPREDUCE

NONE

NONE

OCRPLUGIN

OCRPLUGIN

PAYMENTGATEWAY

PAYMENTGATEWAY

PAYMENTPOSTBACK

PAYMENTPOSTBACK

PLATFORMEXTENSION

PLATFORMEXTENSION

PORTLET

PORTLET

PROMOTIONS

PROMOTIONS

RECORDACTION

RECORDACTION

RESTLET

RESTLET

REST_WEBSERVICES

RESTWEBSERVICES

SCHEDULED

SCHEDULED

SDF_INSTALLATION

SDFINSTALLATION

SHIPPING_PARTNERS

SHIPPINGPARTNERS

SUITELET

SUITELET

TAX_CALCULATION

TAXCALCULATION

USEREVENT

USEREVENT

USER_INTERFACE

USERINTERFACE

WEBAPPLICATION

WEBAPPLICATION

WEBSERVICES

WEBSERVICES

WEBSTORE

WEBSTORE

WORKBOOKBUILDER

WORKBOOKBUILDER

WORKFLOW

WORKFLOW

Syntax

Important:

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 

          

Related Topics

N/runtime Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices