SuiteScript 2.x User Event Script Entry Points and API

Important:

User event scripts cannot be executed by other user event scripts or by workflows with a Context of User Event Script. In other words, you cannot chain user event scripts. You can, however, execute a user event script from a call within a scheduled script, a portlet script, or a Suitelet.

Script Entry Point

Description

afterSubmit(context)

Executes immediately after a write operation on a record.

beforeLoad(context)

Executes whenever a read operation occurs on a record, and prior to returning the record or page.

beforeSubmit(context)

Executes prior to any write operation on the record.

context.UserEventType

Holds the string values for user event execution contexts.

Related Topics

General Notices