All Trigger
The All trigger type is a server trigger that starts an instance of a workflow for any triggering event that occurs for a record. For example, when a user views a record, a workflow instance initiates because a Before Record Load event executes on the viewing of a record.
The following diagram shows typical record events and when the All trigger executes:
Guidelines for the All Server Trigger
Use the following guidelines when using the All server trigger.
-
Use the All trigger when the functionality of the workflow is not dependent on when a workflow may initiate and enter the entry state.
-
In general, you're better off choosing a more specific trigger type for workflow initiation. Think about when a workflow should start and enter the entry state. For example, if a workflow needs to start only after a record is saved to the database, go with the After Record Submit trigger instead.
-
When you cancel a workflow instance for a single record, NetSuite reloads the record in the NetSuite UI. for workflows that start On Update and use the All or Before Record Load server triggers, the workflow instance kicks off again when you're canceling it. To avoid this result, use the Before Record Submit or After Record Submit server triggers on workflows set to initiate On Update.