SuiteScript 2.x User Event Script Entry Points and API

Important:

You can’t run a user event script from another user event script, or from a workflow with a Context of User Event Script—so you can’t chain them together. But you can run a user event script from inside a scheduled script, a portlet script, or a Suitelet.

Script Entry Point

Description

afterSubmit(context)

Runs right after a write operation on a record.

beforeLoad(context)

Runs whenever a record is read, before it’s returned or the page is loaded.

beforeSubmit(context)

Runs before any write operation on the record.

context.UserEventType

Stores the string values for user event execution contexts.

Related Topics

General Notices