CSV Import Execution Context in User Event Scripts
Published on
February 29, 2024 at 7:25:35 AM PST February 29, 2024 at 7:25:35 AM PSTth, February 29, 2024 at 7:25:35 AM PST
Scenario
Trigger User Events scripts in CSV Imports.
Solution
The execution context of User Event scripts are affected by CSV Import preference.
Follow the steps below to trigger a User Event script in CSV Imports:
- Using Administrator role, navigate toSetup>Import/Export>CSV Import Preferences
- Check setting forRun Server SuiteScript and Trigger Workflows
Note:If this preference isenabled(checked), then User Event scripts are triggered. All three events (beforeLoad, beforeSubmit, and afterSubmit)are executed and the context is
csvimport.