Before Record Submit Trigger

The Before Record Submit trigger is a server trigger and executes after a user clicks Save on a record, but before NetSuite saves the data to the database. Actions and transition set to execute on Before Record Submit execute on the NetSuite server, before the record data is ‘submitted’ to the database.

The Before Record Submit trigger can be used for the following elements of a workflow:

The following diagram shows typical record events and when the Before Record Submit trigger executes:

A diagram showing typical record events and when the Before Record Submit trigger executes.

In general, use the Before Record Submit trigger when you want to use a workflow to make changes to the record before NetSuite saves the data to the database. For example, use the Before Record Submit trigger in the following situations:

Before Record Submit Trigger Example

The following screenshots show the workflow definition and entry state for a workflow that initiates after a user clicks Save on a new Travel Request record:

Workflow Definition

A screenshot showing the workflow definition and entry state for a workflow that initiates after a user clicks Save.

Entry State

A screenshot showing the workflow definition and entry state for a workflow that initiates after a user clicks Save.

User Behavior

Workflow Behavior

User creates a new Travel Request record.

None.

User clicks Save on the Travel Request record.

Workflow instance initiates, enters the entry state, executes the three Set Field Value actions.

In this state, a transition executes on an After Record Submit trigger. Consequently, the record transitions to the next state after the record data is saved to the database.

The state is designed so the actions execute on the Entry trigger. They do not use the Before Record Load trigger, for example, because the workflow instance did not initiate until the Before Record Submit trigger executed. If the actions were set to execute on the Before Record Load trigger, they would not execute, because the record entered the state on a Before Record Submit trigger. For more information, see Rules and Guidelines for Workflow Triggers and Trigger Execution.

Before Record Submit Trigger Guidelines

Important:

Use the following guidelines when using the Before Record Submit trigger.

Related Topics

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

General Notices