Consider applying the following best practices to optimize your workflow performance:
- Combine multiple workflows that have the same logic and functions into a single workflow.
- Filter workflow execution by execution context and event type.
- Convert scheduled workflows that operate on records with static data or data that does not change often to event-based workflows instead. This way, the workflows do not run on the records unnecessarily.
- Consider the most appropriate workflow execution context for your workflow. The workflow execution context specifies how and when a workflow is triggered to run. If you don’t use the appropriate context, workflows run when they shouldn’t and result in unexpected errors.
Execution contexts provide information about how or when a SuiteScript script or SuiteFlow workflow is triggered to execute. For example, a script can be triggered in response to an action in the NetSuite application, or an action occurring in another context, such as a web services integration. You can use execution context filtering to ensure that your scripts or workflows are triggered only when necessary.
The following contexts were added recently to provide more control over script and workflow execution:
Bank Connectivity
Bank Statement Parser
Financial Institution Connectivity
Platform Extension
REST Web Services
SOAP Web Services
Revenue Management