Share via


OnEnter and OnExit Events

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

You can add script to a state that executes immediately before a record enters or after it exits that state, regardless of which transition the record follows. These events often are used to execute validation and e-mail notification scripts.

To add script that executes when a record moves into a state

  • Double-click the OnEnter icon on that state in the workflow process diagram. The Code Editor opens with OnEnter event procedure tags added.

To add script that executes when a record leaves a state

  • Double-click the OnExit icon on that state in the workflow process diagram. The Code Editor opens with OnExit event procedure tags added.

See Also

When to Use Which Event | Script Procedure Names | Control of Row Changes Based on State | OnExpire Events | Adding Transition Events | Automating Changes and Events