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 should choose a more specific trigger type for workflow initiation. Consider when a workflow should initiate and enter the entry state. For example, if it is necessary for a workflow to only initiate after a record is saved to the database, choose the After Record Submit trigger instead.
-
When you cancel a workflow instance for a single record, NetSuite reloads the record in the NetSuite UI. Therefore, for workflow that initiate On Update and use the All or Before Record Load server triggers, the workflow instance re-initiates when you cancel it. To avoid this result, use the Before Record Submit or After Record Submit server triggers on workflows set to initiate On Update.