Loading records into Salesforce fires the same automation that runs when users save records: Apex triggers, flows, validation rules, workflow rules, duplicate rules, and assignment and auto-response rules. During a data migration, sandbox seed, or bulk update, that automation can send emails to real customers, create unwanted tasks, overwrite loaded values, or reject records outright. Admins therefore pause selected automation for the load and turn the automation back on afterward. The hard part is pausing exactly the right switches and restoring every one of them.
What Goes Wrong
- Blocked loads. Validation rules, duplicate rules, required fields, and restricted picklists reject historical records that do not meet today's rules.
- Side effects. Triggers and flows send emails, create follow-up records, recalculate values, and call external systems for every loaded record.
- Slow loads. Automation running on every record adds processing time and can push large batches past platform limits.
- Forgotten restoration. Automation deactivated by hand in Setup is easy to leave off after the load, which silently breaks business processes until someone notices.
How to Approach a Load
- Record the starting state. Before changing anything, capture which automations are active on the objects being loaded, so the exact baseline can be restored.
- Pause only what the load needs. Limit changes to the objects and automation types involved. Leave unrelated automation alone.
- Keep record types active. Loaded records need the record types and picklist values that the data refers to.
- Validate before deploying. Activation changes are metadata changes. In production, changing an Apex trigger's status runs code coverage calculations, so plan for test time.
- Restore and verify. After the load, restore the saved baseline and then check the org's actual automation states, including after a load that stopped partway.
Some teams build bypass logic into their automation instead, such as a custom permission or a custom setting that triggers, flows, and validation formulas check before running. Bypass logic must be designed in advance and maintained in every automation, while pausing and restoring switches works on automation as the automation exists today.
How Snapshot Helps
- Automation Switchboard Report: shows active and inactive automation by metadata type or by object, including Apex triggers, flow definitions, validation rules, workflow rules, duplicate rules, assignment rules, auto-response rules, escalation rules, approval processes, lookup filters, required fields, restricted picklists, and record types. Export Switches saves the baseline, Ignored keeps unrelated switches out of the deployment, Test Deployment validates without changing the org, and Deploy Switches applies the changes. Import Switches loads the saved baseline for restoration, and Retrieve Switches reads the org's current states to confirm the result.
- Migrate Datasets: the Deactivate Assets tab pauses selected Apex triggers, flow definitions, and restricted picklists, and in some cases duplicate, workflow, and validation rules, for the duration of a dataset load and reactivates them afterward. After an interrupted load, check that the selected automation was restored.
Neither tool establishes that a load is safe for the business. The results describe automation configuration, not execution history or the correctness of the loaded records.
Metadata Types Involved
-
ApexTrigger:statusisActive,Inactive, orDeleted; inactive leaves the trigger in place without running. -
FlowDefinition:activeVersionNumberselects the active flow version and, when deployed, overrides the status in the flow versions. -
Flow: the flow versions themselves, including record-triggered flows that run during loads. -
ValidationRule:activeset to false disables the rule without deleting the rule's formula. -
WorkflowRule:activecontrols whether the rule runs, regardless of the rule's criteria. -
DuplicateRule:isActiveset to false disables the rule without removing the rule's matching configuration. -
RecordType: record types should stay active during a load so that loaded values remain valid.
Common Questions
Can I pause automation for only one object?
Yes. Group the automation by object, leave switches on other objects ignored, and change only the switches for the object being loaded.
Does deactivating an Apex trigger in production need tests?
Changing an Apex trigger's status in a production org causes code coverage calculations, so allow time for tests to run as part of the deployment.
How do I make sure everything was turned back on?
Restore from the baseline saved before the load, not from memory, then read the current states back from the org and compare them with the baseline.
Can a restricted picklist be relaxed for a load?
Picklist fields that use a global value set are always restricted and cannot be deactivated. Load values that exist in the value set, or add the missing values first.