Help centre / Contacts and data quality

Importing related records into HubSpot: how to keep contacts, companies, deals and activities linked

How HubSpot matches imported rows to records, when to use one file or two, and how to bring in activities so every record stays linked.

By Abdur Rahim Mostafa, HubSpot consultant · Updated 7 November 2026 · 3 min read

Most broken imports have the same cause: HubSpot couldn't tell which existing record a row belonged to. It then creates a new record, or creates the right one without linking it. Here's how HubSpot matches records and how to set up files that keep everything linked.

How HubSpot matches records

  • Contacts match on email. A row with no email creates a new contact every time.
  • Companies match on the primary company domain name. A row with no domain creates a new company, and if two companies already share that domain, the row fails with an error.
  • Deals, tickets and other records only match on Record ID, or on a custom property set to require unique values. Without one, every import creates new deals.

Companies created through the API, including by sync apps, aren't deduplicated by domain at all, which is why integrations so often leave duplicate companies.

One file or two

One file. Put each object's columns side by side, for example contact columns and company columns in the same row, and HubSpot associates everything in that row. If the same company appears on several rows with identical values and no unique ID, HubSpot treats it as one company linked to all those contacts. If the values differ between rows, it creates separate companies, so keep them identical or include the domain.

Two files. One file per object, with a column in both under the same header, such as a company domain or an old system ID. During the import you choose that common column and tell HubSpot which object it's the unique key for.

Records that already exist. Import a file with an identifier for each side, such as contact email and company Record ID, and set the second column to import as an association.

Importing activities

You can import calls, emails, meetings, notes and tasks. Emails, meetings and notes must be associated with a record when you import them. Imported emails, meetings, notes and tasks can't be updated by a later import, so check a sample before the full run. When importing meetings, map an owner column to Activity assigned to, or they won't count toward sales goals.

Keep the old system's IDs

Before importing from another system, create a property for its record ID on each object and set it to require unique values. Import it on every row. It lets you update and associate records later without HubSpot Record IDs, and it's the quickest way to check what came across.

From client work

At Phoenix Industrial Cleaning, ServiceTrade jobs weren't linking to their HubSpot deals because the two sides had no shared ID. I backfilled ServiceTrade's service request IDs onto 186 deals and 112 job records, then matched on those. I also merged duplicate company records that had come in under slightly different names.

Moving from another CRM? See the guides for Salesforce, Zoho CRM and Pipedrive. If you'd rather hand it over, book a free 30-minute call.

Questions

Why did my import create duplicate deals?

Deals only match on Record ID or a property that requires unique values. Without one of those columns, every row creates a new deal.

Can I associate records that are already in HubSpot?

Yes. Import a file with an identifier for each record, such as email and company Record ID, and map the second column as an association.

Can I fix imported notes or meetings with another import?

No. Imported emails, meetings, notes and tasks can be created but not updated by import. Delete the wrong ones and import them again.

Did this fix it?

Written by Abdur Rahim Mostafa. I'm an independent HubSpot consultant with 12 years of HubSpot work. I fix and build HubSpot portals, integrations and automation for teams in the US, UK and Australia. See my case studies or find me on LinkedIn.

Can't find your fix?

Book a free 30-minute call and show me what's happening in your portal. If it needs work, you get a written scope and one fixed price.

Book a free 30-minute call