On this page11 sections
- 1Before you merge: who can, and what to check
- 2Ways to merge accounts in Salesforce
- 3How to merge accounts in Lightning Experience
- 4How to merge accounts Salesforce doesn't flag
- 5What moves to the kept account, and what is lost
- 6A worked example: three accounts for one company
- 7How to find duplicate accounts across the whole org
- 8Why you can't merge accounts in Salesforce, and the fix
- 9Can you undo an account merge?
- 10Find and merge duplicate accounts with Operelio's CRM health
- 11Frequently asked questions
Before you merge: who can, and what to check
A merge can't be undone, so check these before you start. The permissions are from Salesforce's merge help, and the blocks from its notes on merging accounts.
| Check | Why it matters |
|---|---|
| You have Delete on accounts, and you're an admin, the account owner or above the owner in the role hierarchy | Without both, Salesforce doesn't let you merge. Read access is enough to see the duplicates, not to merge them. |
| The accounts are the same kind | Business accounts merge only with business accounts, and person accounts only with person accounts. |
| No contact is related to two of the accounts | If the accounts are indirectly related to the same contact, Salesforce asks you to remove the redundant relationship first. |
| Account team members have no values in unique custom fields | The merged account keeps every team member from the other accounts, and a value in a unique field blocks the merge. Clear the value, or take the unique flag off the field. |
| You know which account other systems point at | A billing tool or warehouse that links to an account by its Salesforce ID still points at a merged-away account afterward. Keep the account they use as the principal, or update their link. |
| You're on a computer | The Salesforce mobile app can't merge accounts. |
Ways to merge accounts in Salesforce
Every route ends in the same merge, three accounts at most at a time. They differ in how you find the duplicates and in what they need.
| Method | How it finds duplicates | Accounts per merge | What it needs |
|---|---|---|---|
| View Duplicates, in Lightning Experience | Your duplicate rules, shown on the account | Up to 3 | Active duplicate rules and the Potential Duplicates component on the account page |
| Merge Accounts, in Salesforce Classic | You search by name | Up to 3 | Classic switched on for you, and the Merge Accounts link under Tools |
| Duplicate record sets | Records your rules reported, or a duplicate job found | Up to 3 | Edit and Delete on accounts |
| Duplicate jobs | Runs a matching rule across every account | Up to 3, from the job's results | Performance or Unlimited Edition, Customize Application and View All Data |
| The API's merge() call, or Apex | Your own code decides | 3 a request, 200 requests a call | A developer, and the same Delete access |
| A dedupe app, or a tool such as CRM health | Its own matching, across the org | Depends on the tool | Installing or connecting it |
How to merge accounts in Lightning Experience
These are the steps in Salesforce's help for Lightning Experience. The duplicates you see come from your active duplicate rules, so an account they don't flag won't be listed.
Open one of the accounts
When the account has duplicates, a card or message on the page says so. Click View Duplicates to list them.
Choose up to three accounts
Select the accounts to merge, including the one you're on, and click Next.
Pick the principal account
The principal is the account that stays. Choose the one other systems link to, or the one with the most history, so its ID, Chatter feed and manual sharing carry on.
Pick the field values to keep
For each field where the accounts differ, select the value to keep, and click Next. Fields that aren't on the accounts' page layouts aren't offered, and the principal's values in those stay.
Check and merge
Read the summary on the last screen, then click Merge. The other accounts go to the Recycle Bin.
How to merge accounts Salesforce doesn't flag
Two accounts for one company often get past the duplicate rules: one has a billing city and the other doesn't, or the company renamed itself. Salesforce's help sends those to the merge tool in Salesforce Classic, which finds accounts by a name you type. You switch to Classic for the merge and back afterward.
Switch to Salesforce Classic
Click your profile picture and choose Switch to Salesforce Classic. If the option isn't there, an admin has hidden it, or your edition, such as Starter, has no Classic.
Open Merge Accounts
On the Accounts tab, click Merge Accounts under Tools. If the link is missing, you don't have the access to merge.
Search for the accounts
Type a word the account names share, such as Tarrow, and click Find Accounts.
Select up to three and click Next
Business and person accounts can both show in the results, but they can't be merged with each other.
Pick the principal and the values, then merge
Choose the account to keep, select the value to keep in each highlighted field, and click Merge. Switch back to Lightning Experience from your name at the top of the page.
What moves to the kept account, and what is lost
Salesforce's API guide puts the merge in one line: the main record stays, the others are deleted, and the main record becomes the parent of their related records. Its help adds what happens to each part of the account:
| Part of the account | After the merge |
|---|---|
| Record ID | The principal's. Links to the other accounts' IDs point at deleted records. |
| Field values | The ones you picked. A value you didn't pick is gone from the account, kept only on the deleted record in the Recycle Bin. |
| Hidden and read-only fields | The principal's, including its sharing settings. The other accounts' values in fields you couldn't see are lost. |
| Contacts, opportunities, cases and other related records | Move to the principal. |
| Campaigns and activities | Move to the merged account, with some exceptions. |
| Created By and Created Date | From the oldest of the accounts, whichever is the principal. The merge shows as the last change. |
| Chatter feed | The principal's only. |
| Account team | Every member from every account, even from different teams. |
| Sharing | Your sharing rules apply to the merged account. Manual sharing comes from the principal only. |
| Child accounts | Become children of the principal. If that would make a loop in the hierarchy, the merge fails. |
| The other accounts | Go to the Recycle Bin, with any brands they had. |
A worked example: three accounts for one company
Say three accounts belong to one supplier (the company and people are made up). The sales team added the second when a rep didn't find the first, and the third came in with an import.
| Field | Account 1 | Account 2 | Account 3 |
|---|---|---|---|
| Account Name | Tarrow Marine | Tarrow Marine Inc. | TARROW MARINE |
| Billing City and State | Portland, OR | Portland, OR | (blank) |
| Phone | (503) 555-0148 | (blank) | (503) 555-0148 |
| Website | tarrowmarine.example | (blank) | tarrowmarine.example |
| Industry | (blank) | Boat parts wholesale | (blank) |
| Owner | Dana Ruiz | Sam Patel | Dana Ruiz |
| Contacts | 14 | 3 | 1 |
| Open opportunities | 2 | 1 | 0 |
| Created | Mar 4, 2019 | Aug 17, 2022 | Jan 9, 2024 |
How to find duplicate accounts across the whole org
View Duplicates shows one account's duplicates at a time, so it only helps once you've found one. Salesforce's standard account matching rule also needs more than a matching name: an account with no billing city or ZIP may not be flagged even when its name matches another. These are the ways to get a full list.
Report on duplicate record sets
Set your account duplicate rule to report on create and edit, then build a report on Duplicate Record Sets with Duplicate Record Items. It lists only duplicates saved since the rule started reporting.
Run a duplicate job
On Performance and Unlimited Edition, a duplicate job runs a matching rule across every account and lists the matches as duplicate record sets you can merge from.
Add a matching rule on Account Name
A custom matching rule with Account Name on its own catches accounts the standard rule misses. Clean the names first, since Exact only ignores case and spaces at the ends.
Or export and sort the accounts
Export Account Name, Website, Billing City and the account ID, take Inc, LLC, Ltd and punctuation off a copy of each name, and sort by it. Rows that end up together are your candidates, and the IDs tell you which accounts to open.
Why you can't merge accounts in Salesforce, and the fix
Most failed merges come down to access, the duplicate rules, or a relationship Salesforce won't break for you.
| What you see | Why | Fix |
|---|---|---|
| No View Duplicates on the account | The duplicate rules for accounts are off, or the Potential Duplicates component isn't on the account page | Activate the standard account duplicate rule, and add the component in Lightning App Builder |
| The duplicate you know about isn't listed | Your matching rule doesn't count it as a match, often because a billing city or ZIP is blank | Merge it with the Classic merge tool, or fill in the missing field |
| No Merge Accounts link in Classic, or merging is refused | You don't have Delete on accounts, or you aren't an admin, the owner or above the owner | Ask an admin for the access, or to do the merge |
| A message about redundant relationships | A contact is related to two of the accounts | Remove the contact's extra relationship, then merge |
| An error about unique fields | An account team member has a value in a unique custom field | Clear the value, or take the unique flag off the field |
| A person account and a business account won't merge | Salesforce never merges the two kinds | Merge each with its own kind |
| A field is missing from the merge screen | The field isn't on the account page layout assigned to you | Add it to the page layout, or edit the principal before or after |
| An error about the hierarchy | Making one account the parent of the other's children would make a loop | Change the Parent Account on one of them first |
| Lightning won't merge accounts in a relationship group | Lightning Experience doesn't support it | Follow Salesforce's notes on relationship groups |
Can you undo an account merge?
Not as an undo. The other accounts sit in the Recycle Bin, usually for 15 days, and you can restore them from there, but what moved to the principal stays on it: you'd move contacts and opportunities back by hand.
So before a big batch, export the accounts you're about to merge, with their IDs and every field, so you have the values a merge throws away.
Find and merge duplicate accounts with Operelio's CRM health
CRM health reads Salesforce Contacts, unconverted Leads and Accounts, and lists duplicate companies with the rest of its findings. The check is free: by hand, once a month, for a CRM of up to 25,000 records on Free. Fixing, merges included, and a check on a schedule come with Starter and up, and an admin approves every fix.
Two accounts are a pair when their names match once case, punctuation and endings such as Inc, LLC and Ltd are set aside. A pair with the same website is listed apart from a pair where one or both have none, and two accounts with the same name but different websites are never a pair. For each name, the account with the most contacts is kept, a tie going to the oldest.
In the worked example above, all three accounts are one name to CRM health. Account 1 is kept, Account 3 pairs with it on name and website, and Account 2 pairs with it on name, since it has no website.
Before it merges, CRM health saves a backup of both accounts and reads them again. Then it uses Salesforce's own merge: the kept account keeps its ID and its values, the other account's contacts move to it, and the other goes to the Recycle Bin.
Frequently asked questions
How many accounts can you merge at once in Salesforce?
Three, counting the one you keep. The API has the same limit for each merge request. For more, merge in rounds into the same principal account.
What happens to contacts and opportunities when you merge accounts?
They move to the account you keep, with the other related records such as cases. Activities and campaigns move too, with some exceptions, and the Chatter feed comes from the kept account only.
Does merging accounts delete data in Salesforce?
The accounts you don't keep go to the Recycle Bin. Field values you didn't pick, and their values in fields hidden from you, don't carry over to the kept account.
Can you merge accounts with different names?
Yes. Duplicate rules won't list them, so use the merge tool in Salesforce Classic: search for a word both names share, select the accounts and merge. A developer can also merge any two accounts by ID with the API's merge() call.
Can you merge a person account with a business account?
No. Salesforce merges business accounts only with business accounts, and person accounts only with person accounts.
Who can merge accounts in Salesforce?
Someone with Delete on accounts who is also an admin, the account owner or above the owner in the role hierarchy. Merging accounts where a team member has more access than you also takes Modify All Data on accounts.

