context.InvocationType

Enum Description

Enumeration that holds the string values for scheduled script execution contexts.

Module

SuiteScript 2.x Scheduled Script Type

Since

2015.2

Values

SCHEDULED

The normal execution according to the deployment options specified in the UI.

ON_DEMAND

The script is executed from a call in a script (using ScheduledScriptTask.submit()).

Note:

The scheduled script must have a status of Not Scheduled on the Script Deployment page.

USER_INTERFACE

The script is executed from the UI (the Save & Execute button has been clicked).

ABORTED

The script re-executed automatically following an aborted execution (system went down during execution).

SKIPPED

The script is executed automatically following downtime during which the script should have been executed.

Related Topics

General Notices