Exit Trigger

The Exit trigger is a server trigger and executes the first time a record exits a state in a workflow. Use the Exit trigger if you want an action to execute only when a record exits a state for the first time. The Exit trigger applies to all actions except the Confirm and Show Message actions.

The actions and transitions that execute on the Exit trigger depend on the server trigger on which the record exits the state. If the record exits the state on an After Record Submit trigger, only actions and transitions that may execute on the After Record Submit trigger will execute. You can control the trigger on which a record exits a state by using the correct trigger on the transition from the current state to another state.

For example, a state contains a Lock Record action set to execute on the Exit trigger and the record exits the state on the After Record Submit server trigger. However, the After Record Submit trigger is not a valid trigger type for the Lock Record action. Consequently, the Lock Record action does not execute. However, if you use the Before Record Load trigger on the transition from the state, any Lock Record action set to trigger on Exits executes, but only the first time the record exits the state. For more information, see Rules and Guidelines for Workflow Triggers and Trigger Execution.

For a list of the valid actions for the Exit trigger, see Workflow Triggers Quick Reference.

Exit Trigger Example

The following state shows actions set to execute on the Entry and Exit triggers:

Screenshot of an example of actions set to execute on the Entry and Exit triggers.

Trigger Type

Workflow Behavior

Entry

The Set Field Value action executes when the record enters the state for the first time and sets the Current Approver field to the supervisor for the current approver.

Exit

The Set Field Value action executes when the record exits the state and sets the Supervisor Approval flag on the record to True if the Repair Value is set to High.

Exit Trigger Guidelines

Important:

Use the following guidelines when using the Exit trigger.

In some cases, you can use the Entry and Exit triggers for the same purpose. If you require an action to only execute one time in a workflow, setting it to execute on Exit of one state or on Entry of a target state accomplishes the same result.

Related Topics

Server Triggers Reference
Triggers Reference
Workflow Triggers Quick Reference
Server Triggers
SuiteFlow Trigger Execution Model

General Notices