How to Deduplicate HubSpot Companies and Salesforce Accounts

Merge each duplicate company and its Salesforce Account in both CRMs at once, so the HubSpot-Salesforce sync doesn't bring them back.

View as Markdown

To deduplicate HubSpot companies and Salesforce Accounts without breaking the sync, the same records have to be merged in both CRMs, and the record the integration syncs with has to be the one that's kept. Dedupely does both in one action: connect HubSpot and Salesforce, link them, and merge from either CRM. There's no merge order to follow, and no custom fields or workflow changes to set up.

Why synced companies come back after a merge

When you merge two companies in HubSpot only, the company that's merged away disappears from HubSpot but stays active in Salesforce. On the next sync, the integration can create the duplicate again or overwrite field values.

The fix is to merge the matching company and Account in both CRMs at once, and keep the record the integration syncs with.

  • Go to CRM Settings and open the HubSpot-Salesforce Integration tab.
  • In the dropdown, choose the other CRM to link the two.

If a synced company's other CRM isn't connected to Dedupely, the merge is blocked, so neither side keeps a duplicate.

Step 2: Find duplicate companies or Accounts

Run a Duplicate Search on HubSpot companies or on Salesforce Accounts. You can start from either CRM. Match on at least three fields, for example:

  • Domain with Domain Root.
  • Name with Similar Words (Any Order), with Inc., LLC and Ltd. as Ignored Terms.
  • Country or City with Exact.

See How to Merge Duplicate Companies and Accounts in Bulk.

Step 3: Check which record is kept

Open a match's Merge Preview. The record the integration syncs with stays the Primary Record, so the sync keeps its record. Your Merge Rules still decide the field values. See Merge Rules.

Step 4: Handle matches that would break the sync

If the two CRMs aren't linked and a match holds HubSpot 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 Safety Setting "Merges that would break the HubSpot-Salesforce Integration sync" for HubSpot companies.

Step 5: Test, then merge in both CRMs

  • Merge one match first, then check the company in HubSpot and its Account in Salesforce.
  • Bulk merge the rest of the search. Each merge updates both CRMs in one action.
  • Once the search has run without false matches, turn on Auto Merge. With both CRMs linked, Auto Merge merges new synced companies in HubSpot and Salesforce too.

What about contacts and leads?

Only companies and Accounts are merged in both CRMs at once. Synced contacts, leads and other records are merged only in the CRM where you merge them, like any other merge. Test a few before you merge synced contacts or leads in bulk.

Example setup

A RevOps team syncs 40,000 HubSpot companies with Salesforce Accounts, and finds the same customers twice on both sides.

  • Link: HubSpot and Salesforce linked in the HubSpot-Salesforce Integration tab.
  • Search: on HubSpot companies: Company Domain Name with Domain Root · Name with Similar Words (Any Order) · Country with Exact.
  • Check: ten matches in Merge Preview, each keeping the company the integration syncs with.
  • Merge: one merge checked in both CRMs, then a bulk merge a page at a time, then Auto Merge.

What happens next

  • Both CRMs are updated in one action. The matching company and Account are merged in HubSpot and in Salesforce.
  • The sync keeps working, and the next sync doesn't create the duplicate again.
  • Every merge is logged in Merge History.
  • Treat every merge as permanent. Merges made in both CRMs at once can't be undone, and neither can company merges in a HubSpot portal synced with Salesforce. Download your Merge History if you need the original values.

Common mistakes

  • Merging in one CRM only. The other CRM keeps the duplicate, and the sync brings it back. Link the CRMs first.
  • Connecting only one CRM. Dedupely blocks merges of synced records when the other CRM isn't connected.
  • Bulk merging before testing. These merges can't be undone. Merge one match and check both CRMs first.
  • Expecting contacts and leads to merge in both CRMs. Only companies and Accounts do.

FAQs about HubSpot companies and Salesforce Accounts

  • How do I deduplicate HubSpot companies and Salesforce Accounts? Connect both CRMs to Dedupely, link them in the HubSpot-Salesforce Integration tab, find the duplicates, and merge. Each company and its Account are merged in both CRMs in one action.
  • 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.
  • Which record is kept? The record the integration syncs with stays the Primary Record. Your Merge Rules decide the field values.
  • Do I need custom fields or workflow changes? No custom fields or workflow changes are needed.
  • Does Auto Merge work with synced companies? Yes. With both CRMs linked, Auto Merge merges synced companies in HubSpot and Salesforce.
  • Can I undo these merges? No. Merges made in both CRMs at once can't be undone, so test a few first.

Next up

How to Merge Duplicates in HubSpot and Salesforce Without Breaking the Sync How the HubSpot-Salesforce Integration works in Dedupely.

Still stuck?

Our team helps on every plan and during the free trial, by chat, email or Zoom.

Portrait of Gaby Salinas

Behind the article

Gaby Salinas

Marketing Assistant at Dedupely

Gaby Salinas came to CRM data from marketing and advertising, so she looks at duplicates from two sides: the match and merge logic behind them, and what they do to the people using the CRM, like the rep who calls a customer twice, the admin who gets blamed and the cleanup nobody wants to start.

As Marketing Assistant at Dedupely, she follows how RevOps teams, end users, consultants and technical teams actually work with their data: the records they stop trusting, the workarounds they build and the moment they finally decide to clean up. What she finds shapes most of what Dedupely publishes.

Connect with Gaby on LinkedIn

Get started for free

20 free trial merges and as much free support as you need to get your duplicates under control.

Try for freeTalk to sales
Or sign up with Google
  • "This tool made a week long project take a few hours. Definitely a go-to for deduplication processes."

    Burchard JHubSpot User

    HubSpot Marketplace

Running CRM cleanup for clients? See the Partner Program