Before Record Load Trigger

The Before Record Load trigger is a server trigger and executes before a record loads into the browser. Actions and transitions set to execute on Before Record Load execute on the NetSuite server, after a user clicks Edit or View, and before the record loads and the user has access to the record.

The Before Record Load trigger can be used on the following elements of a workflow:

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

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

In general, use the Before Record Load trigger when you want to use a workflow to make changes to the record before the record loads into the browser. For example, use the Before Record Load trigger in the following situations:

Before Record Load Trigger Example

The following screenshot shows actions for a state set to execute on the Before Record Load and Entry triggers:

A screenshot showing example actions set to execute on the Before Record Load and Entry triggers.

Trigger Type

Action Execution

Before Record Load

Several actions may execute before the record loads into the browser, depending on the user that accesses the record:

  • The two Set Field Value actions execute for any user.

  • The two Set Field Display Type actions and the two Add Button actions execute, only if the Current Approver field for the Travel Request is the user accessing the record.

  • The Lock Record action executes if the user accessing the record is the employee who submitted the Travel Request.

Entry

The Send Email action executes when the record enters the state for the first time.

This state is designed so that whenever the Travel Request record gets accessed, the approval buttons are added for the approver of the Travel Request and Current Approval and Rejection Reason fields become editable.

For the employee that submitted the Travel Request, the record is only locked, the buttons do not appear, and the Current Approval and Rejection Reason fields appear but are not editable.

Guidelines for Using the Before Record Load Trigger

Important:

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

Related Topics

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

General Notices