Sea of Knowledge

How to Manage HubSpot Duplicates when Integrated with Salesforce

HubSpot manages duplicates differently when integrated with Salesforce. The process to merge, delete, and deduplicate shifts because of the integration and it can be challenging to navigate. We'll walk you through the process and provide detailed steps to deduplicate contacts and companies in HubSpot and leads, contacts, and accounts in Salesforce. 

Proactively Prevent and Monitor Duplicates

  1. Turn off “Automatically create and associate companies with contacts” in HubSpot. If you’re just using HubSpot, this feature is great. If you’re syncing with Salesforce, it can lead to many duplicate companies. When integrated with Salesforce, HubSpot deduplicates companies based on the Salesforce Account ID and Domain. So, this feature will create a new company for each form submission or contact added via the HubSpot email extension. Additionally, you cannot merge duplicate companies in HubSpot when integrated with Salesforce. You’ll have to manually delete the companies and manually associate the contacts to the company record that’s syncing with Salesforce.


    Turn off Create and associate companies with contacts in HubSpot

  2. Regularly monitor contact and company duplicates. This is in addition to monitoring the duplicates flagged in the HubSpot health section of the integration. The duplicates flagged in HubSpot health are just duplicates that are impacting the integration. However, HubSpot can have thousands of duplicates that are not impacting the integration that will go unfixed if you’re not looking for them.

    The screenshots below were taken from the same account at the same time. The duplicates flagged in HubSpot health were nowhere close to the number of overall system duplicates.

Duplicates in Manage Duplicates under Contacts in HubSpot

Duplicates in HubSpot Health in Salesforce, HubSpot Integration

 

Manage Duplicates in HubSpot

Deduplicate Contacts in HubSpot

  1. Navigate to Contacts > Contacts.
  2. Select the “Actions” button in the top right of the screen.
  3. Select “Manage Duplicates”.
  4. Click “Edit surfaced properties” in the top right of the screen.
  5. Select “Create Date”, “Salesforce Contact ID”, and “Salesforce Lead ID”.
  6. Determine which contact is the ‘master’ and which contact is the duplicate that needs to be merged. The master will either be the first created or the one that has a Salesforce ID associated with it (meaning it exists in Salesforce). If they both have a Salesforce ID, open them in Salesforce and deduplicate them in Salesforce. Deduplicating in Salesforce should automatically delete the duplicate in HubSpot if you have the integration setting enabled (screenshot below).
  7. Open the master contact and select “Actions” in the top left of the screen.
  8. Select “Merge” and enter the email of the duplicate contact you’re merging into this ‘master’ contact.
  9. Click “Merge” in the bottom left of the pop-up.

Salesforce Integration Settings for Deleting Contact Deleted in Salesforce

Deduplicate Companies in HubSpot

  1. Navigate to Contacts > Companies.
  2. Select the “Actions” button in the top right of the screen.
  3. Select “Manage Duplicates”.
  4. Select “Companies” on the left of the screen.
  5. Click “Edit surfaced properties” in the top right of the screen.
  6. Select “Create Date” and “Salesforce Account ID”.
  7. Determine which company is the master and which company is the duplicate that needs to be merged. The master will either be the first created or the one that has a Salesforce ID associated with it (meaning it exists in Salesforce). If they both have a Salesforce ID, open them in Salesforce and deduplicate them in Salesforce as well. Deduplicating accounts in Salesforce will not deduplicate companies in HubSpot automatically.
  8. Open the duplicate company and see what assets are associated with it.
    -  If the company has contacts associated - open the ‘master’ company and bulk add the contacts to the company. Under “Contacts” in the right panel, click “Add” and type the email domain. Then, you can select all of the associated contacts at one time.
    -  If the company has attachments that the ‘master’ company does not, download them and reupload them to the ‘master’.
    -  If the company has deals associated, remove the association and associate the ‘master’ company with the deal.
  9. Once all assets have been transferred from the duplicate company, delete it.
For companies, you will need to manually transfer documents, contact associations, and deals from the duplicate company to the company that’s syncing with Salesforce.

Manage Duplicates in Salesforce

Deduplicate Contacts + Companies in Salesforce

Salesforce does not provide an easy way to generate a list of duplicate leads, contacts, and accounts as HubSpot does. In Salesforce, the best way to manage duplicates is to build custom duplicate reports. Follow these steps for Accounts, Contacts, and Leads to create three duplicate reports.

  1. In Salesforce, navigate to Setup
  2. In the Quick Find box, search “Report Types”
  3. Select “New Custom Report Type”
  4. Select [Lead, Contact, Account] for the Primary Object
  5. For Report Type Label, name the report “[Lead, Contact, Account] Duplicates”
  6. Create a brief description and select the folder you’d like to store these reports in
  7. Select “Deployed” and click “Next”
  8. Click “Relate another object” under the Primary Object
  9. Search and select “Duplicate Record Items”
  10. Select “Each “A” record must have at least one related “B” record to make sure all items shown in the report have a duplicate record
  11. Select “Save”
  12. Repeat for all three objects

Create a Duplicate Record Report in Salesforce

Once the report types are created, navigate to “Reports” in Salesforce. Your report should look like this.

Preview of Account Duplicate Record Report in Salesforce

To deduplicate records from this report:

  1. Click an item in the “Duplicate Record Item Name” column
  2. Click on the value in the “Duplicate Record Set” field
  3. Open the two accounts by selecting both values in the “Record” column
  4. Confirm they’re actually duplicates
  5. If they are, select the “View Duplicates” call to action wherever it is located in your organization’s page layout
  6. Select both records on the list and click “Next”
  7. Select which record should be kept as the master record
  8. Select the most recent or most accurate field value for the fields that differ between the two accounts
  9. Select “Next”
  10. Confirm the Merge

Duplicate Warning in Salesforce for Accounts

Want to learn more about the HubSpot Salesforce integration?

We've created the first-ever course designed to help you master the HubSpot Salesforce integration. If you're ready to build the strategic & technical skills needed to maximize your tools, be sure to check it out!

Explore the Curriculum