When working with HubSpot and Salesforce, data duplication can create serious problems for your marketing, sales, and reporting. This guide will help you understand how to manage and reduce duplicates, without breaking your Salesforce-HubSpot integration.
These are 4 key concepts that you need to know:
1. Salesforce as the Source of Truth
Treat Salesforce as the primary source of truth, especially for company and account records. HubSpot automatically deduplicates Salesforce accounts into HubSpot companies using the Salesforce Account ID property. To avoid duplication issues, consider disabling automatic company association or creation in HubSpot. This is particularly important when syncing Salesforce leads to HubSpot. Since Salesforce leads are not associated with accounts, they won’t create a company in HubSpot during the initial sync. However, a duplicate company may later be created when a related contact or company is created in Salesforce.
➡️ Learn more about HubSpot deduplication
2. Merging Duplicate Contact in HubSpot
HubSpot allows you to merge duplicate contacts, even with the Salesforce integration enabled. Here’s how:
➡️ Learn more about how to merge HubSpot contacts
3. Merging Duplicate Companies in HubSpot with Koalify
HubSpot does not support merging companies while the Salesforce integration is active. That’s where Koalify comes in. Koalify offers a merge-like behavior for company records, even when the Salesforce integration is enabled.
➡️ Learn more about how to merge HubSpot companies (when the Salesforce integration is disabled)
4. Avoid Disabling the Integration
HubSpot strongly advises against disabling the Salesforce integration to merge duplicates in HubSpot. Doing so may break the integration and disrupt the data sync. Instead, manage duplicates within Salesforce first and delete them in HubSpot or use Koalify to merge your duplicates.
HubSpot Operations Hub provides data sync features to seamlessly sync data between the two platforms, allowing you to transfer data from Salesforce to HubSpot and vice versa.
These synchronized properties can be leveraged with Koalify duplicate rules to identify duplicates and define the primary record during merging.
While HubSpot doesn’t support native company merging with Salesforce sync enabled, Koalify provides a workaround.
A. When Both Duplicate Companies Sync with Salesforce
Avoid merging companies with different Salesforce Account IDs—this can break the sync. To prevent incorrect suggestions, configure Koalify duplicate rules with filters like:
Company Name (& Domain Name / Phone / Street Address) & Salesforce Account ID
B. When 1 Duplicate Companies sync with Salesforce
If one duplicate has a Salesforce Account ID and the other does not, make sure the synced record is retained as primary. Set a primary duplicate rule like:
Salesforce Account ID & Last Activty Date
It’s common to have duplicate contacts in HubSpot, particularly when using HubSpot for marketing purposes. These duplicates may exist even if each contact has a different email address. If you have HubSpot integrated with Salesforce and a duplicate corresponds to just one Salesforce lead or contact record, you can safely merge the duplicates in HubSpot.
A. When Both Duplicate Contacts Sync with Salesforce
B. When Only One Contact Syncs with Salesforce
First Name, Last Name & Company Name Match
First Name, Last Name & Mobile Phone Match
First Name, Last Name & Phone Match
Salesforce Contact, Lead ID is known, Unsubscribed from all is not true
With these strict duplicate and primary rules in place, you can bulk merge duplicates using Koalify’s workflow action.
Set the following enrollment criteria:
Then, add the Koalify Workflow Action: "Merge Duplicate Contact"
For precise control, Koalify detects duplicates automatically and then enables you to manually merge duplicate records. When viewing a contact with a potential duplicate, you can easily merge or reject the suggestion using the actions button.
Here is an example of a merge where the Salesforce Contact ID is used in combination with First Name and Last Name.
Additionally, here is an example of a merge where the Salesforce Lead ID is used in combination with First Name and Last Name.
After clicking the actions button, you will have the option to merge or reject the suggestion.