Merging accounts removes duplicates and keeps your data clean
Salesforce lets you combine two accounts into one, keeping the records and history from both. When you merge, one account becomes the primary account and keeps all the combined data — contacts, opportunities, activities, and notes move over. The duplicate account is deleted. This is different from simply deleting an account: merging preserves everything you need.
The merge process in Salesforce is straightforward but has real consequences if you get it wrong. You cannot undo a merge after it completes, so you need to choose your primary account carefully and understand what happens to related records. This guide walks you through the actual steps, what to watch for, and how to handle the records that don't move automatically.
Key Takeaways
- You can only merge two accounts at a time in Salesforce, and the primary account you choose will keep its name and all combined data from both accounts.
- Contacts, opportunities, and activities from the duplicate account move to the primary account automatically, but custom fields and some related records may need manual updates.
- Merges cannot be undone, so verify you have the right primary account selected before you confirm the merge.
- Account hierarchies, contracts, and certain field values follow specific rules during a merge — check your org's settings before you start.
- If you do not have the Merge Accounts permission, your Salesforce administrator must enable it or perform the merge for you.
Check your permissions before you start
Not every Salesforce user can merge accounts. Your role needs the Merge Accounts permission turned on. If you try to merge and see a message saying you do not have permission, contact your Salesforce administrator and ask them to add this permission to your profile or permission set.
Your administrator can also restrict merging to certain users or turn it off entirely for your org. If your company has that restriction in place, your administrator will need to perform the merge for you or temporarily grant you the permission. Ask them directly rather than trying to work around it — merging the wrong accounts can cause real problems for your team.
Find and open both accounts before merging
Start by locating the two accounts you want to merge. Open one account in Salesforce — this will be your starting point. Look at the account name, the contacts attached to it, any open opportunities, and recent activity. Make a note of anything important, because you will need to decide which account should be the primary one (the one that survives the merge).
Then search for the duplicate account. Use the search bar at the top of Salesforce and type the account name or a variation of it. When you find it, open it in a new tab or window so you can see both accounts side by side. Compare the data: which account has more complete information? Which one do your team members use more often? Which one has the contacts and opportunities you want to keep? The account with the most current and complete data should usually be your primary account.
Start the merge from the primary account
Open the account you want to keep as your primary account. Look for a dropdown menu or action button — in most Salesforce setups, this is a button labeled Show more actions or a down arrow near the top of the page. Click it and look for an option called Merge Accounts. Click that option.
Salesforce will open a merge dialog. You will see your primary account listed at the top. Now you need to search for and select the duplicate account — the one you want to merge into the primary. Type the account name in the search field and select it from the results. Once you have selected the duplicate account, Salesforce shows you a preview of what will happen: which fields will keep their values, which will be overwritten, and what related records will move.
Review the field mapping before you confirm
The preview screen shows you exactly what data will survive the merge. For each field, Salesforce shows the value from the primary account and the value from the duplicate account. If both accounts have data in the same field, the primary account's value wins — the duplicate's value is discarded. This is important: if the duplicate account has more recent or accurate information in a field, you will lose it.
Look at critical fields like phone number, billing address, website, and any custom fields your company uses. If the duplicate account has better data in any field, you have two choices: either go back and update the primary account before merging, or plan to update it manually after the merge is complete. For most merges, it is faster to update the primary account first, then merge. That way you do not have to remember to fix it later.
Scroll through the entire preview. Pay special attention to any field that shows a blank value in the primary account — Salesforce will not pull the duplicate's value over, so you will need to add it manually if you want to keep it. Once you have reviewed everything and you are confident the primary account is the right choice, click the button to confirm the merge.
What happens to contacts, opportunities, and activities
When the merge completes, all contacts from the duplicate account are reassigned to the primary account. If both accounts had the same contact (same email address or name), Salesforce does not create a duplicate contact — it keeps one and updates it with any missing information from the other. Opportunities move the same way: all open and closed opportunities from the duplicate account now belong to the primary account.
Activities — calls, emails, meetings, tasks — also move to the primary account. Any activity logged against the duplicate account is now logged against the primary. This is one of the biggest reasons to merge: your team's history with that customer stays intact instead of being split across two accounts.
One thing that does not move automatically: if the duplicate account was the parent in an account hierarchy, those child accounts will be orphaned. You will need to manually reassign them to the primary account or to another parent account. Check your account hierarchy after a merge if your company uses parent-child account relationships.
Handle contracts and custom objects after the merge
Contracts attached to the duplicate account do not automatically move to the primary account. After the merge is complete, search for any contracts linked to the old account ID and update them manually. Your Salesforce administrator can help you find these if you are not sure how to search for them.
The same applies to custom objects — any objects your company built that are linked to the account. If your org uses custom objects for things like projects, cases, or service records, check whether they moved during the merge. Some do, some do not, depending on how they were set up. If something is missing, your administrator can help you move those records to the primary account.
Frequently Asked Questions
Can I undo a merge after it is done?
No. Merges cannot be undone in Salesforce. Once you confirm the merge, the duplicate account is deleted and the data is combined. This is why it is critical to review the preview screen carefully before you click confirm. If you realize you made a mistake immediately after merging, contact your Salesforce administrator — they may be able to restore from a backup, but this is not may provide.
What if both accounts have different values in the same field?
The primary account's value always wins. The duplicate account's value is deleted. If the duplicate has more accurate or recent information, update the primary account before you merge. You can also merge first and update the primary account afterward, but it is easier to get it right before the merge happens.
Do I have to merge accounts one at a time?
Yes. Salesforce only lets you merge two accounts in a single operation. If you have three duplicates, you merge the first two, then merge the result with the third. This takes longer but ensures you do not accidentally lose data by trying to combine too many at once.
What happens to the account ID when I merge?
The primary account keeps its ID. The duplicate account's ID is deleted. Any reports, dashboards, or integrations that reference the duplicate account ID will break. Make sure your team knows which account ID is the correct one after a merge, and update any automations or external systems that might be using the old ID.
Can I merge accounts if one of them is inactive?
Yes. You can merge an inactive account into an active one, or vice versa. The primary account's active or inactive status is what remains after the merge. If you want the merged account to be active, make sure your primary account is active before you merge.