context.UserEventType
Enum Description |
This holds the string values for user event execution contexts. The beforeLoad, beforeSubmit, and afterSubmit entry points use
Note:
JavaScript doesn’t have a built-in enumeration type. When SuiteScript 2.x docs say "enum," they mean a plain object where each key maps to a read-only string value. |
Module |
|
Since |
Version 2015 Release 2 |
Values
Note:
There’s no execution context for VOID actions, so it isn’t a supported user event context. When a transaction is voided, scripts set to run on EDIT might still trigger on VOID, but may not work as expected. To avoid issues, add conditions in your EDIT scripts to filter out transactions where the memo is "Void" or "Voided," and check for the voided field. See Catch the Void Using a User Event Script for details. |
For an example of the context.UserEventType, see SuiteScript 2.x User Event Script Sample.
If you attach or detach a child custom record from its parent, it triggers an edit event.