01
NetSuite StorageKnow more

Active workflows can generate a large number of workflow instances and history records. The following records are usually generated when a workflow executes:
The accumulation of too many workflow instances and history records can negatively impact NetSuite's performance. For example, you may begin to notice slower-than-usual processing, or unexpected behavior.
The following best practices can help you to manage your workflow instances and history records to avoid possible negative performance.
Let's go through the process of managing these “Instances and History records” and how it actually reflects in Netsuite. The following are the different methods to delete workflow instances and history records.
Note: Deleted workflow instances and history records cannot be recovered.
History records are created each time a workflow moves into a state, including the first state of the workflow. You can delete workflow instances and history records for finished workflow instances and view statistics on the Instances and History Records popup window.
Image:1
The number of active and finished workflow instances displayed in the Statistics section on the Instances and History Records popup window is an estimate and not an exact total. The number of active and finished workflow instances is rounded down to the closest actual number of instances and records.
The following screenshot displays the “POP UP WINDOW” of instances and records.
Image:2
Workflow instances and history records are deleted based on the length of time, in months, they have been stored. 3 months is the default setting, but you can specify a different length of time to base the deletion.
Steps to delete instances and history records are shown below:
A record of the deletion process is logged on the History tab on the Workflow Definition page. When the deletion process is complete, an email is sent to the user who initiated the deletion process.
Note: It can take days to delete a large number of history records. Only one deletion process is run at a time. If you initiate multiple deletion processes, they are queued in the order that they were initiated.
NetSuite provides users with the option to disable the history of a workflow when it is executed. In the Keep Instance and History dropdown list, you can select to save workflow instances and history records Always, Never, or Only When Testing.
The following screenshot shows the dropdown list field in a workflow definition page.
Never & Only When Testing - When you select the Never or Only When Testing options, you can view workflow instance and history records on the record's “Active Workflows Subtab” and “Workflow History Subtab” subtabs while the workflow runs. After the workflow completes or is canceled, the history records related to the workflow instance’s execution are deleted from the database.
Always - When you select the Always option, history records related to the workflow instance’s execution are saved in the database.
Note ( EXIT STATE ) - The history records are never deleted for workflows that transition to a state with the Do Not Exit Workflow box enabled.
Steps to disable history for a workflow are shown below:
You can cancel a single workflow instance from the record on which the workflow instance runs. Users with the Administrator role can cancel workflow instances.
Steps to cancel a single workflow instance are shown below:
You can cancel multiple instances of a specific workflow simultaneously for the same base record type in NetSuite. You can cancel workflow instances for standard NetSuite record types or custom record types. Use this feature to avoid viewing each record individually to cancel a workflow instance on the record. Users with the Administrator role can cancel workflow instances.
To cancel a workflow instance on multiple records simultaneously follow the below steps:
Criteria (Required) - Select a field or formula in the dropdown list and enter values in the popup that appears. These filters are specific to workflow history.
Results (Optional) - Define display options for mass update results. The results appear when you preview the records for the mass update
Audience (Optional) - Define the users who can perform the mass update.
Schedule (Optional) - Define a schedule on which to perform the update.
The following screenshot shows the Mass Updates page for employee records created between two dates: