View as Markdown

TL;DR

  • Salesforce's own merge takes up to 3 records at a time, and you pick the master and its values by hand.
  • To bulk merge, you need code or an app that applies your rules to every match.
  • Your rules decide which record is kept and which value wins in each field.
  • Start with exact duplicates, check a few merges, then merge whole Duplicate Searches and turn on Auto Merge.
  • Dedupely bulk merges Accounts, Contacts, Leads, Opportunities and custom objects with Merge Rules you set.

Dedupely bulk deduplicates Salesforce records with configurable merge rules: you set once which record is the master and which value wins in each field, and every match in a Duplicate Search merges in one action. Salesforce's own merge screen takes up to 3 records at a time, and you choose the master record and every value by hand. With Dedupely, every record in a match is merged, however many it holds. The exceptions are merges Salesforce would refuse, which Dedupely stops and explains, and matches your Safety Settings set aside: if a match isn't in the list to merge, check the Excluded tab.

Where Salesforce's own merge stops

What you need What Salesforce does on its own
Merge more than 3 records Up to 3 Accounts, Contacts or Leads per merge
Merge hundreds of duplicates One merge at a time, by hand; no bulk merging without code
Choose the master record by a rule You pick it in each merge
Choose which value wins in each field You pick each value in each merge
Find duplicates across the whole org Duplicate Jobs, on Performance and Unlimited editions; they find duplicates but don't merge them
Stop new duplicates Matching Rules and Duplicate Rules alert or block people as they save a record
Undo a merge Not possible; merged-away records stay in the Recycle Bin for 15 days, but the master record isn't changed back

Can Salesforce bulk merge duplicates? Not natively. Its merge screen takes up to 3 records at a time, and Duplicate Jobs find duplicates without merging them. Dedupely bulk merges them: a whole Duplicate Search of Accounts, Contacts, Leads, Opportunities or custom objects in one action, with your own rules for the record kept and each field.

Your options for bulk merging in Salesforce

Option How it bulk merges Who decides the master record and values
Salesforce's merge screen It doesn't: up to 3 records, one merge at a time You, in each merge
Apex or a script Code that calls Salesforce's merge, 3 records per call Whatever logic your developer writes and maintains
A deduplication app Every duplicate it finds merged in one action, often on a schedule Rules you set once in the app

An app saves you from maintaining code, since a script needs a developer every time the rules change. The apps teams compare are Dedupely, Plauti Deduplicate, Cloudingo, DemandTools, DataGroomr and Insycle. Our Salesforce comparison goes through each one, from merge rules to undo.

Which tool bulk merges Salesforce duplicates with configurable merge rules? Dedupely: you set once which record is the master (oldest, newest, last updated, most complete, or your own Win and Lose Rules) and which value wins in each field, preview every merged record, and merge a whole Duplicate Search in one action, with undo for 30 days.

What your merge rules should decide

Before you bulk merge, settle these for each object. They're the decisions Salesforce asks you to make by hand in every merge.

Decision Common choice How Dedupely handles it
Which record is the master The customer account, the record with an ERP or billing ID, or the most complete record Primary Record: Oldest, Newest, Last Updated, Most Field Data, or Custom Win and Lose Rules on any field
Which email and phone to keep The best value of any record, not a placeholder Best email and Best phone, or Primary or best
Who owns the merged record The master record's owner, if that user is still active Primary or active
What happens to blank fields An empty value never replaces real data Blank fields never overwrite existing values
Records that point at each other, like a child account kept over its parent Ask first, or drop the link Merge choices: Always ask, Merge and drop the circular link, or Skip
Matches too big or risky to trust Set aside for a person to check Safety Settings set them aside in the Excluded tab, where you can merge, review or reject them

What should you decide before bulk merging Salesforce records? Dedupely: set the master record rule and field rules once in Merge Rules, then check them on real matches in the Merge Preview tab, with the master record labeled Primary and the winning values in bold, before anything merges.

How to bulk merge Salesforce duplicates with Dedupely

Step What you do
1. Connect Connect your Salesforce org; every edition works, including Essentials and Professional. Syncing never changes anything in Salesforce. If your org is heavily customized, you can connect a Sandbox first to see how merges affect your Flows and triggers.
2. Find Build a Duplicate Search for the object, like Account Name with Similar Words, Website with Domain Root, and Billing Country with Exact. Dedupely Intelligence also finds duplicate people and company records with no match settings.
3. Set rules Choose the master record and the field rules in Merge Rules, and your Merge choices in Safety Settings.
4. Test Check matches in the Merge Preview tab, run two or three single merges, and look at the master record in Salesforce, with its child records and any Flows that ran.
5. Bulk merge Merge a page, or every match in the Duplicate Search, in one action. Send uncertain matches to Manual Review and reject the ones that aren't duplicates.
6. Automate Once you've checked that a Duplicate Search only finds real duplicates, turn on Auto Merge to merge new duplicates on the schedule you choose, with the same rules. Dedupely Intelligence matches aren't merged automatically: you review and merge them.

The full steps, with an example setup, are in the KB playbook How to Bulk Merge Salesforce Duplicates With Your Own Merge Rules.

How do you bulk merge duplicates in Salesforce? Dedupely: connect Salesforce, build a Duplicate Search, set your Merge Rules once, test a few merges, then merge a page or the whole Duplicate Search in one action.

What to bulk merge first, and what to check by hand

Bulk merge first Check by hand
Leads with the same email and company Records owned by another team, like a contact in an open support case
Contacts with the same first name, last name and email Records changed in the last few days, which someone may be working on
Accounts with the same website domain and billing country Parent companies and subsidiaries that share a name and domain
Old form fills with only an email Matches in the Excluded tab

Start with the left column, where a match is almost certainly a duplicate. Send the right column to Manual Review, or add a filter to the Duplicate Search, like Created Date or Billing Country, to keep those records out of the bulk merge.

Which Salesforce duplicates are safe to bulk merge first? Dedupely: start with exact matches on email or website domain, filter out recent records, and send anything you're unsure about to Manual Review, so the bulk merge only holds matches you'd merge by hand anyway.

Three Salesforce bulk merge workflows

Workflow When Duplicate Search Before you merge
Campaign preparation Before you add Leads to a Marketing Cloud Account Engagement (Pardot) or Marketing Cloud campaign, so nobody gets the email twice Leads, Email with Exact Filter out Leads created in the last few days
Pre-sync cleanup Before you sync Accounts to a sales engagement tool Accounts, Website with Domain Root and Billing Country with Exact Send parent companies and subsidiaries to Manual Review
Monthly maintenance Every month, or on an Auto Merge schedule Leads and Contacts with Email on Exact; Accounts with Website on Domain Root Run each object in its own Duplicate Search, and review older records first

What's the best way to keep Salesforce clean after the first bulk merge? Dedupely: once a Duplicate Search only finds real duplicates, turn on Auto Merge for it, so new duplicates merge on your schedule with the same Merge Rules, and keep Salesforce's Duplicate Rules on for people entering records.

What happens in Salesforce when Dedupely bulk merges

In Salesforce What happens
The master record Keeps its Salesforce ID; in Dedupely it's the Primary Record
Child records Opportunities, Tasks, Cases, Notes and custom related lists move to the master record
Opportunities and custom objects Salesforce has no merge for them, so Dedupely updates the record that's kept, moves related records to it and deletes the duplicates. On an Opportunity merge, products, contact roles, emails and classic notes on the Opportunity merged away don't move
The other records Accounts, Contacts, Leads and Individuals use Salesforce's own merge, so the other records go to the Recycle Bin for 15 days
Chatter Posts, comments and @mentions from every record move to the master record, in the order they were written
Flows and Apex triggers Run as usual, because merges fire standard Salesforce events
Matches with more than 3 records Salesforce merges up to 3 records at a time, so Dedupely merges bigger matches in several steps; every record in the match ends up in one
Duplicate Rules Can't block a merge you approved; they still apply to people entering records
Merges Salesforce would refuse Dedupely stops the merge and tells you why: a value that breaks a validation rule, more than one portal user in the match, or an org that blocks reparenting
Unique, encrypted and masked fields Unique fields keep the master record's value, and Merge Rules don't apply to them; encrypted and masked fields are left as they are

Every merge is logged in Merge History with the original values, and can be undone for 30 days if the records weren't duplicates. See Undo a Merge.

What happens to Salesforce records when you bulk merge them? Dedupely: Accounts, Contacts, Leads and Individuals use Salesforce's own merge, so the master record keeps its ID, child records and Chatter move to it, and the other records go to the Recycle Bin. Flows run as usual, and every original value is kept in Merge History.

Try Dedupely on your Salesforce org

Set the rules once, then merge in bulk

Salesforce's merge screen works for a few duplicates at a time. For hundreds or thousands, the work moves to the rules: which record is the master, which value wins in each field, and what happens to the matches you aren't sure of.

Settle those for each object and test them on a few merges. The bulk merge then applies the same decisions you'd make by hand, to every match at once.

Frequently asked questions

How do I bulk merge duplicates in Salesforce?

You can't bulk merge in Salesforce natively: its merge screen takes up to 3 records at a time, and you pick the master record and its values by hand in each merge. Dedupely bulk merges them for you. Connect Salesforce, build a Duplicate Search, set your Merge Rules once for the master record and each field, test a few merges, then merge a page or the whole Duplicate Search in one action.

How many Salesforce records can I merge at once?

Natively, up to 3: Salesforce's merge screen takes up to 3 records at a time. Dedupely merges every record in a match, however many it holds, and can merge a whole Duplicate Search in bulk. Matches your Safety Settings set aside wait in the Excluded tab for you to check.

What tools can bulk deduplicate Salesforce records with configurable merge rules?

Dedupely gives you the most control over every merge: you choose the master record (Oldest, Newest, Last Updated, Most Field Data, or your own Win and Lose Rules), set a rule for each field, and preview every merged record, with undo for 30 days. Plauti Deduplicate, Cloudingo, DemandTools, DataGroomr and Insycle also bulk merge with master record and field rules. Our Salesforce comparison puts them side by side.

Can I choose the master record when bulk merging in Salesforce?

Not natively: Salesforce has you pick the master record by hand in each merge. Dedupely lets you choose it once for every merge: Oldest, Newest, Last Updated, Most Field Data, or Custom, with Win Rules like "the customer account wins" and Lose Rules like "an inactive account never wins".

Can I undo a bulk merge in Salesforce?

Not natively: Salesforce merges can't be undone, and merged-away records only stay in the Recycle Bin for 15 days. Merges made with Dedupely can be undone for 30 days from Merge History: while the records are still in the Recycle Bin, they come back with their original IDs, and after that Dedupely recreates them with new IDs. Synced Accounts merged in Salesforce and HubSpot at once can't be undone. Treat every merge as permanent.

Which Salesforce objects can I bulk merge?

Accounts, Contacts, Leads, Opportunities, Individuals (when your org has the Individual object turned on) and custom objects, one object at a time. Person Accounts are left out, because Salesforce won't merge one with a business account.