How to Mass Update Salesforce Records Safely
A safe procedure for mass updating Salesforce records: scope with SOQL, snapshot before, batch the import, and verify after - with the automation traps to check first.
Updated 2026-09-09
A mass update is the one admin task where a small mistake scales instantly. The safeguards are procedural, not technical, and they take about ten extra minutes.
This is the checklist worth following every time, whichever tool you use.
1. Scope it with a query first
Never build the target list by hand. Write the SOQL, count it, then export exactly that set - the same filter that defines the update should define the snapshot.
SELECT COUNT()
FROM Account
WHERE Industry = NULL AND CreatedDate = LAST_N_DAYS:902. Snapshot the current values
- Export Id plus every field you are about to change - that file is your rollback.
- Keep it until the change has survived a full business cycle, not just until the import succeeds.
3. Check what the update will trigger
- Validation rules that will reject rows mid-batch.
- Flows, triggers, and workflow rules that fire on update - a 50,000-row update can cascade well beyond the object you targeted.
- Roll-up summaries and sharing recalculations on parent records.
- Email alerts - disable them for the run if the change is administrative.
4. Batch it, starting small
- Run 10 records first and inspect them in the UI.
- Then a few hundred, then the rest.
- Use the Bulk API for large volumes, and keep the success and error files from every batch.
5. Verify after
Re-run the original count query. It should return zero (or the expected remainder). Spot-check records the automation touched indirectly, not just the ones you updated.
Frequently asked questions
- How do I undo a bad mass update in Salesforce?
- There is no undo. You re-import the pre-change snapshot keyed on record Id, which is why exporting it first is non-negotiable.
- Should I disable automation before a mass update?
- Sometimes - and only deliberately. Deactivating a validation rule or flow for a run is legitimate; forgetting to reactivate it is the failure mode. Note it in the change ticket.
- What is the safest batch size?
- Start at 10 for verification, then 200 for API-mode work. Large Bulk API batches are efficient but make failures harder to isolate when triggers are involved.
More from the Admin How-To
- How to Check Salesforce Org LimitsCheck Salesforce org limits - API calls, data storage, file storage, and daily email - from Setup, the limits API, and the browser, before you hit them.
- How to Create and Deploy a Salesforce Change SetStep by step: create an outbound change set, upload it, and deploy it as an inbound change set - plus the deployment connection you need between orgs before any of it works.
- How to Export Salesforce Data to ExcelFour ways to export Salesforce data to Excel or CSV - reports, Data Loader, the Bulk API, and in-browser SOQL export - and when each one is the right choice.
- How to Export Salesforce Reports and List ViewsExport a Salesforce report or list view to CSV or Excel, including the size limits each format hits and when to switch to a SOQL export instead.
- How to Schedule a Recurring Salesforce Data ExportThree ways to get a Salesforce data export on a schedule - the native Weekly Export, a scheduled Bulk API job, and the difference between a backup and a working dataset.
- Change Sets vs Metadata API Deployments: Which to UseChange sets and Metadata API / CLI deployments solve the same problem differently. Here is when each one is the right choice, and what a change set genuinely cannot do.
Related reading
- GlossaryWhat Is a Sandbox in Salesforce?A sandbox is a copy of your Salesforce org used for development, testing, and training, isolated from production data and users.
- GlossaryWhat Is Governor Limits in Salesforce?Governor limits are per-transaction caps Salesforce enforces on shared resources - SOQL queries, DML rows, CPU time, heap size - so that no single tenant can
- GlossaryWhat Is the Bulk API in Salesforce?The Bulk API processes large volumes of Salesforce records asynchronously in batches, which makes it the right interface for loading or extracting hundreds of