The Before Record Load trigger is a Server Trigger that fires right before the data for a new record or an existing record is loaded into the application accessing NetSuite (e.g. Browser, Mobile App, Web Services, etc.). Those data may include UI form elements and can be referenced or altered before the application loads it.
Use this trigger to set default field values, control form elements, and perform pre-processing tasks before the data is delivered to the accessing application.
If an error occurs during this trigger, the data will not be loaded and an error page will be displayed.
This trigger is valid for the following workflow actions:
✅ This trigger is can be also set for Workflow Initiation Timing and Workflow Transition Timing.
Sample Usage Scenario:
In Approval Workflow, add the Approve and Reject buttons to the form only if the current user is assigned in the Next Approver field.
Workflow Action Setup for the above Scenario:
Note: The above settings apply to both the Approve and Reject Buttons.
ℹ️ Some points to consider when using the Before Record Load trigger:
- This trigger fires again when the browser is refreshed/reloaded.
- Field values on existing records cannot be set if this trigger is used with the Set Field Value or Go To Record actions.
- When the Set Field Value action is used with this trigger, it cannot overwrite the default value of a Stored Custom Field or a field sourced from another record.
Let us know what you think about this topic by leaving a comment or using the reaction buttons below.
-Jack