When records are deleted or merged by mistake, the recovery path depends on what changed, how long ago it happened and who can act. Before anyone attempts a restore, write down the affected records, the time window, the change source and an owner for each step. Restoring first and recording later often makes the damage harder to measure.
Establish what changed before anyone restores anything
A recovery request usually arrives as a vague report: a sales rep cannot find an account, or a report shows fewer contacts than it did last week. Turn that report into a defined scope before touching the data. Identify the object type, the record IDs where they are known, the date and time window, the user or integration that made the change, and the record that survived any merge. Ask for the report or view that first showed the gap, because it marks where the investigation should start.
Separate three situations that look alike but need different recovery paths:
- Deletion. A record was removed from its object. The first question is whether it still sits in a recoverable area and who can restore it.
- Merge. Two records were combined and one was retired. The surviving record may have absorbed field values and related items, so a simple restore can create duplicates.
- Bulk change. Many records were updated or deleted by an import, a sync or an automation. The root cause is often the process, and restoring records while it keeps running repeats the damage.
Choose the recovery path for each type of change
Deleted records are the simplest case when the platform still holds them in a recoverable area. Check whether the record appears there, whether its child records were removed with it, and how much time has passed since the deletion. Retention windows depend on how your organization is configured, so confirm the window before assuming a restore is possible. When the record has passed that window, the path moves to rebuilding it from an export or a backup kept outside the platform.
Merged records need more care. A merge typically moves related items to the surviving record and retires the other one, so reversing it is rarely a single action. The usual approach is to recreate the retired record from the last good export and then move the related items back to it where they belong. Work through the related items one group at a time. Do not assume the survivor’s values were wrong just because they changed, because some changes made after the merge were legitimate and should stay in place.
For bulk changes, stop the source before restoring anything. Pause the import, sync or automation that caused the change, confirm that it has stopped writing, and then start the restore. A restore that runs while the source is still active can overwrite corrected values with the same wrong ones.
Assign an owner to each recovery step
Recovery stalls when nobody is sure who decides what. Name one owner for each step before the work starts and write the names into the incident record. In many teams the roles divide along these lines:
- The support analyst takes the request, confirms the scope and opens the incident record. Triage steps for this kind of problem are covered in failed automation triage for support analysts.
- The data steward decides which records are in scope and which duplicates should be merged again or left alone. The steward’s regular review cycle is described in the data steward duplicate review routine.
- The platform administrator performs the restore, because it needs access that many users do not hold.
- The integration owner pauses any sync or automation that caused the change and confirms when it is safe to resume.
- The business owner of the affected data approves the result, especially where a merge chose a survivor with values that the owner disagrees with.
Keep the approver and the checker separate where your team can manage it. The person who signs off on a restore should not be the one person who checks it afterwards.
Record the affected set before any restore
The record of the affected set is what makes recovery measurable. Capture it before the restore starts and keep it unchanged afterwards, so the before and after states can be compared.
- Freeze the scope. Export the list of record IDs, object names and key fields for the window you identified. Name the file with the incident number.
- Count related items. For each affected record, note the number of child records, such as activities, notes, attachments, opportunities or cases, and the parent each one pointed to before the change.
- Capture the survivor state. For merges, export both the surviving record and the retired record, including owner, status and last modified date.
- Note the timeline. Record when the change started, when someone noticed it and when the source was stopped. Gaps in this timeline often explain why a restore misses a few records.
- Store the export outside the platform. If the sole copy of the pre-change state sits inside the platform, a bad restore can overwrite the evidence you need to check it.
Restore in a controlled order
Once the scope is recorded and the source is stopped, restore in a fixed order. Parent records come before child records, so related items can attach to a record that already exists. Work in small batches and check each batch before running the next one. A batch of twenty records that can be verified by hand is worth more than a batch of two thousand that cannot be checked in the time available.
Where your organization keeps a sandbox or a copy of production, test the restore there first. Confirm that the restored record has the right identifiers, owner and relationships, and that the duplicate check does not flag it against its own survivor. Without a sandbox, run the first batch on a small set of records that you can inspect individually.
Restore related items last. Reconnect activities, notes and attachments after the parent record is in place, and confirm each connection on the record itself rather than in a report, since a report may not refresh straight away. Keep each batch’s results in the incident record, including any record that did not restore and the reason it failed.
Verify the restore and close the incident
A restore is complete when the current state matches the scope you recorded, not when the restore job reports success. Compare the counts in the exported list with the counts after the restore. Check the owner, status and key fields for a sample of restored records. Then review the reports and list views that first showed the gap, which should now show the expected numbers.
Run the duplicate checks again on the restored set. A restore can create a second copy of a record that someone has already rebuilt by hand, and the duplicate review cycle is the point where that gets caught before it spreads. Close the incident once the business owner has signed off on the result, and record that sign-off with its date.
After closing, look at the cause. Was a permission set too broad, was a merge made without review, or did an integration write to the wrong field? Each cause points to a different control. Tightening access, adding a review step before large merges or testing integrations in a sandbox first each prevents a different kind of repeat. Migration work often exposes the same weak points, so review the data migration and integration approach alongside the incident. The wider support model for keeping these controls running is set out in Salesforce support and maintenance.
If your team does not yet have a named owner for each of these steps, settle that first. For help planning this work, see Salesforce implementation.
Questions about recovering deleted and merged records
Can a merged record be split back into the two original records?
Not usually in one step. The retired record is normally recreated from an export and its related items are moved back by hand or by a controlled script. The recreated record may carry a different record ID, so record the mapping from the old ID to the new one in the incident file so later reports can be reconciled.
Who should approve a restore when the business owner is unavailable?
Agree a named delegate in advance, such as a senior operations lead who knows the data. Restoring without any sign-off leaves nobody accountable for the result, so hold the restore until a delegate confirms the scope in writing if the owner cannot be reached.
What should happen if the export is older than the change window?
An export taken before the change is still the best reference, but it will miss legitimate edits made in between. Compare the export with the current record for each field, keep the current value where the edit was valid, and flag the gap in the incident record so the business owner can decide on each one.
Should users be told that records were restored?
Tell the people who raised the issue and any user whose work was affected, with the date range and the records involved. A short note that says what was restored, what was not, and who to contact prevents duplicate manual fixes while the restore is still being verified.
Can fields be restored without restoring the relationships?
Yes, and that is often the safer first step when values alone were changed. Restore the field values for the affected records, verify them, and then decide separately whether the related items need to move. Splitting the work this way makes each check smaller and easier to sign off.