How to Merge Duplicates in HubSpot and Salesforce Without Breaking the Sync
Merge duplicates in HubSpot and Salesforce at the same time, without breaking the sync or bringing duplicates back.
To merge duplicates without breaking the HubSpot-Salesforce sync, the same records have to be merged in both CRMs, and the record the integration syncs with has to stay. Dedupely detects an active HubSpot-Salesforce Integration and merges duplicate HubSpot companies and Salesforce Accounts in both CRMs in a single action, so you don't have to merge one CRM first. All the contacts, deals and activity attached to them are kept in both CRMs, and no custom fields or workflow changes are needed.
Why merging with the sync on is tricky
A merge inside HubSpot doesn't update Salesforce. When you merge two companies in HubSpot, the secondary company disappears there but stays active in Salesforce. On the next sync, the integration can re-create the duplicate or overwrite field values, so teams end up with workarounds or sync loops.
Dedupely avoids this by merging the matching company and Account in both CRMs at once.
How to merge with the HubSpot-Salesforce Integration on
Added
- Connect both your HubSpot and Salesforce accounts to Dedupely.
- Go to CRM Settings and open the HubSpot-Salesforce Integration tab.
- In the dropdown, select the other CRM to link the two.
- Run a Duplicate Search on HubSpot companies or Salesforce Accounts. You can start from either CRM.
- Open a match's Merge Preview. The record the integration syncs with stays the Primary Record, and your Merge Rules decide the field values.
- Merge one match first, then check the company and its Account in both CRMs.
- Bulk merge the rest, or turn on Auto Merge to merge new synced companies in both CRMs on a schedule.
Before a merge that would break the sync
Added
Dedupely checks HubSpot company merges before they run. If the two CRMs aren't linked and a match holds companies synced to different Salesforce Accounts, Dedupely tells you how many matches would break the sync and offers two choices:
- Connect the syncing Salesforce account, so the merge runs in both CRMs.
- Always Exclude these matches, to skip them now and in future scans. This turns on the Merges that would break the HubSpot-Salesforce Integration sync Safety Setting for HubSpot companies.
In Merge Preview, the HubSpot company synced with Salesforce stays the Primary Record, so the integration keeps its record. When the two CRMs are linked, a Salesforce Account merge always keeps the Account HubSpot syncs with, and your Merge Rules still decide the field values.
What about synced contacts and leads?
Only companies and Accounts are merged in both CRMs at once. Contacts, leads and other synced records are merged only in the CRM where you merge them, like any other merge.
Before you merge synced contacts or leads in bulk, check your integration's sync settings in HubSpot and test a few merges first. A merge in one CRM can be undone within 30 days from Merge History, except HubSpot lead merges. See Undo a Merge.
How to turn off Salesforce sync protection
Added
When the HubSpot-Salesforce Integration is uninstalled, HubSpot keeps its Salesforce properties on your companies, so Dedupely still reads them as synced. To stop that:
- Go to CRM Settings for your HubSpot connection and open the HubSpot-Salesforce Integration tab.
- Under Salesforce sync protection, check We are not using HubSpot-Salesforce Integration.
While it's checked, your Merge Rules decide every company merge, and a merge in one CRM doesn't merge the matching records in the other. Uncheck it to turn the protection back on.
What happens next
- Both CRMs are updated in one action. The matching company and Account are merged in HubSpot and in Salesforce. Auto Merge does the same for new synced companies.
- Your sync keeps working. The next sync cycle doesn't re-create the merged duplicate.
- Every merge is logged in Merge History.
- Merges made in both CRMs at once can't be undone, and neither can company merges in a HubSpot portal synced with Salesforce. A merge made in one CRM only can be undone within 30 days (see Undo a Merge). If you need to recover data, download your Merge History and use it to restore the original values.
Troubleshooting
I don't see the HubSpot-Salesforce Integration tab. Both HubSpot and Salesforce need to be connected to Dedupely. Check CRM Settings.
Merged records came back after a sync. Check that the two CRMs are linked in the HubSpot-Salesforce Integration tab. If they are and it still happens, contact support via email or live chat.
A merge failed in one CRM. Your user might be missing permissions in that CRM. Check the permissions in the HubSpot and Salesforce guides.
FAQs about merging with the HubSpot-Salesforce Integration
- What do I need to merge synced records? A Dedupely account with both HubSpot and Salesforce connected and linked.
- Do I need custom fields or workflow changes? No. Dedupely detects the sync automatically.
- How do I merge HubSpot and Salesforce duplicates without breaking the sync? Connect both CRMs to Dedupely and link them in the HubSpot-Salesforce Integration tab. Dedupely then merges each duplicate company and its Account in both CRMs in one action, and keeps the record the integration syncs with.
- Which CRM should I merge first? Neither. Start from HubSpot companies or Salesforce Accounts: as long as both CRMs are connected, the merge runs in both at once.
- Are contacts and leads merged in both CRMs? No. Only companies and Accounts are. Contacts and leads are merged in the CRM where you merge them.
- Does Auto Merge merge synced companies in both CRMs? Yes. With both CRMs connected and linked, Auto Merge merges synced companies in HubSpot and Salesforce.
- Can a merge be undone? Not when it was made in both CRMs at once, and not for companies in a synced portal. A merge made in one CRM only can be undone within 30 days, from Merge History. For anything that can't be undone, download your Merge History as a CSV and use it to restore the original values.
- Is there a guide to the whole cleanup? Yes. Clean up the HubSpot–Salesforce sync goes from finding the duplicates to merging new ones on a schedule.
Next up
Changelog
-
Turn off Salesforce sync protection
If the HubSpot-Salesforce Integration was uninstalled but left its properties behind in HubSpot, you can switch Salesforce sync protection off for that portal.
-
Pair HubSpot with Salesforce before merging synced records
Pair a HubSpot portal with its Salesforce org. Dedupely warns before a merge that would break the HubSpot-Salesforce Integration, a Safety Setting can exclude those matches, and Merge Preview keeps the synced Account as the Primary.
-
Merge a synced HubSpot and Salesforce pair in both CRMs
When HubSpot companies and Salesforce Accounts synced by the HubSpot-Salesforce Integration are duplicates, Dedupely merges them in both CRMs at once, from either CRM and with Auto Merge, so the pair stays linked. Contacts and leads are merged in one CRM. Both CRMs need to be connected.
Still stuck?
Our team helps on every plan and during the free trial, by chat, email or Zoom.
- Need help? Talk to support
- Questions about plans? Book a Zoom with sales
- Reading this with a model? Read this page as Markdown
- Feeding it the whole site? Read llms.txt




HubSpot Marketplace