context.UserEventType

Enum Description

Holds the string values for user event execution contexts. The beforeLoad, beforeSubmit, and afterSubmit entry points include the context.type parameter that takes on one of the enum values.

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.x documentation utilizes the term enumeration (or enum) to describe the following: a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value.

Module

SuiteScript 2.x User Event Script Type

Since

Version 2015 Release 2

Values
  • APPROVE

  • CANCEL

  • CHANGEPASSWORD

    Note:

    The CHANGEPASSWORD user event is triggered when a user updates their NetSuite password in the NetSuite UI. The password change event is only visible in the NetSuite account in which the password was changed.

  • COPY

  • CREATE

  • DELETE

  • DROPSHIP

  • EDIT

  • EDITFORECAST

  • EMAIL

  • MARKCOMPLETE

  • ORDERITEMS

  • PACK

  • PAYBILLS

  • PRINT

  • QUICKVIEW

  • REASSIGN

  • REJECT

  • SHIP

  • SPECIALORDER

  • TRANSFORM

  • VIEW

  • XEDIT

Note:

There is no execution context for VOID actions. This is not a supported user event context. When a transation is voided, scripts that run on EDIT action may be triggered on a VOID action, and may not behave as expected for the VOID action. You should include conditional statements in scripts that will run in EDIT mode to filter out transactions where the memo field is Void or Voided and check for the voided field. See Catch the Void Using a User Event Script for additional information.

For an example of the context.UserEventType, see SuiteScript 2.x User Event Script Sample.

Note:

Attaching a child custom record to its parent or detaching a child custom record from its parent triggers an edit event.

Related Topics

SuiteScript 2.x User Event Script Entry Points and API
afterSubmit(context)
beforeLoad(context)
beforeSubmit(context)
N/error Module

General Notices