Record ID

Record ID is the unique identifier a CRM assigns to each record, such as a contact, company, deal or lead, when that record is created. No two records of the same object in a CRM share a CRM record ID, so it's the most reliable way for a system to find one exact record, even when its name, email or other values change.

Record IDs are also called record identifiers, object IDs or unique record IDs. Integrations, sync tools, saved links, imports that update existing records, and reports that join data from several systems all rely on them. Merging duplicates affects record IDs, because only one record stays active after a merge. Depending on the CRM, the surviving record keeps one of the original IDs, or it gets a new ID while the old ones are stored on the record as merged record IDs.

See how Dedupely handles record IDs when it merges duplicates in your CRM

What Is Record ID?

A record ID is assigned by the CRM itself, and it stays the same when the record's details are edited. Its name and format differ by CRM: some use a number, others a longer string of letters and digits. HubSpot shows it as Record ID on contacts, companies and deals, Salesforce gives every account, contact and lead its own ID, and Pipedrive, Close, Nimble and Google Contacts give their people, organizations, leads and contacts IDs of their own.

Take two duplicate company records: "Acme Inc." with record ID 1001 and "Acme" with record ID 1045. After a merge, one company remains. Depending on the CRM and the merge settings, it carries ID 1001, ID 1045 or a brand-new ID, and the IDs that no longer belong to an active record may be stored on the merged record.

CRMs handle record IDs during a merge in two main ways. Some keep the surviving record's ID and remove the others. Their strength is that the surviving record's ID never changes, so links and integrations pointing at it keep working, while those pointing at the removed records' IDs need updating. Salesforce, for example, keeps the master record's ID and moves the other records to the Recycle Bin for 15 days, and Pipedrive keeps the surviving record's ID too. Others give the merged record a new ID and redirect the old IDs to it. HubSpot works this way by default, and its strength is that the old IDs still lead to the merged record.

How Record ID Works

A record ID follows a record through its whole life in the CRM:

  • Assigned at creation. When a record is created by a form, an import, an integration or by hand, the CRM gives it an ID. The ID stays the same when fields are edited.
  • Stored by other systems. Integrations, sync tools, marketing and billing systems, and data warehouses often save the CRM record ID next to their own data, so they can update the right record later.
  • Used in links and imports. Record URLs often include the ID, and imports can update existing records by matching on it instead of on a name or email address.
  • Changed by merges. When duplicates merge, only one record stays active. Its ID is one of the original IDs or a new one, depending on the CRM. The IDs of merged-away records stop pointing at an active record, unless the CRM redirects them.
  • New for re-created records. When a record that was merged away or deleted is re-created, for example after an unmerge or from a backup, the CRM treats it as a new record and gives it a new ID. A record restored from a recycle bin or trash, by contrast, can come back with its original ID.

That last step is easy to miss. A record rebuilt with the same name, email and phone number is still a new record to the CRM, so links, integrations and imports that used its original ID don't follow it. Anything that should point at the re-created record has to be updated with its new ID.

Why Record ID Matters for CRM Teams

Record IDs keep the systems around a CRM connected. When an ID stops pointing at an active record, the systems that saved it can lose track of the record. An integration that updates deals by ID may fail, skip the update or, in some setups, create a new record because it can't find the old one, which brings the duplicate back. Billing, support or marketing systems can end up linked to a record that's no longer active.

Imports are affected the same way. A file that updates records by ID only works when the IDs in it are current, so a spreadsheet exported before a merge can point at records that no longer exist. Reports that join CRM data with data from other systems by ID can drop or double-count rows after a merge.

Merges are a common cause of record ID changes, so how a CRM handles IDs during a merge shapes how much follow-up work a cleanup creates. When the surviving record keeps its ID, references to it keep working, and only references to the merged-away IDs need updating. When the CRM creates a new ID, the old IDs stored on the merged record make it possible to trace each reference. Either way, planning for CRM record ID changes before a large merge keeps integrations and reports accurate afterward.

Getting Started With Record ID

Start by listing the systems that store your CRM record IDs: integrations, sync tools, billing or support systems, marketing tools and any data warehouse. Note which of them update records by ID and which only read data, because the ones that write are the ones that can fail or create new records after a merge.

Next, decide which record should survive each merge. In CRMs where the surviving record keeps its ID, the oldest record is often the one other systems have referenced the longest, so keeping it means fewer references to update. If your CRM gives the merged record a new ID, be ready to map old IDs to the new one using the merged IDs it stores on the record.

Before a large merge, export the records involved with their IDs, so you have a list to check references against. Afterward, update the integrations that point at merged-away IDs, and avoid re-importing old files that update records by ID. Records re-created after an unmerge get new IDs too, so treat them as new records in connected systems.

In Dedupely, the Primary Record rule in Merge Rules decides which record survives a merge, the oldest record by default, and the CRM's own merge then decides its ID: in Salesforce and Pipedrive the surviving record keeps its ID. By default, HubSpot gives the merged record a new ID and redirects the old ones, and Merge History can be exported as a CSV with the original values and record IDs.

Key Takeaways: Record ID

A CRM record ID is the unique identifier a CRM gives each record, and integrations, links, imports and reports rely on it to find the right record. Merges change which IDs stay active: some CRMs keep the surviving record's ID, while others, such as HubSpot, create a new ID by default and redirect the old ones. Records re-created after an unmerge get new IDs. In Dedupely, the Primary Record rule in Merge Rules decides which record survives, the oldest by default, and the CRM's own merge decides which ID it keeps. Merge History can be exported as a CSV with the original values and record IDs, and an undo from Merge History re-creates merged-away records with new IDs.

Frequently Asked Questions About Record ID

How does merging duplicates change a CRM record ID?

A merge leaves one record active, so the merged-away records' IDs stop pointing at an active record, and in some CRMs the merged record gets a new ID as well. Salesforce and Pipedrive, for example, keep the surviving record's ID, and Salesforce moves the other records to the Recycle Bin. By default, HubSpot gives the merged record a new ID and redirects the old IDs to it. Other CRMs follow their own rules, so check the documentation for yours before a large merge, especially if integrations update records by ID. Dedupely doesn't pick the ID itself: the Primary Record rule in Merge Rules decides which record survives, and the CRM's own merge decides its ID. Merge History can be exported as a CSV with the original values and record IDs.

Which record ID survives when duplicates are merged?

In many CRMs, the surviving record's ID is the one that stays active, while some CRMs give the merged record a new ID. Merge tools often let you choose the surviving record by a rule, such as the oldest, the newest, the last updated or the most complete record, and where the CRM keeps the surviving record's ID, that ID stays active. Keeping the oldest record often keeps the ID that other systems have referenced the longest, which means fewer integrations and links to update afterward. In a CRM that gives the merged record a new ID, as HubSpot does by default, none of the original IDs stays active, and the old ones redirect to the merged record. In Dedupely, the Primary Record rule in Merge Rules decides which record survives, the oldest record by default (Most Field Data for Google Contacts and spreadsheets), and you can change it to Newest Record, Last Updated Record, Most Field Data or Custom. The CRM's own merge then decides which ID the surviving record has.

Why do integrations break after duplicates are merged?

Integrations often store the record IDs of the records they update, and a merge can leave those IDs pointing at a record that's no longer active. When the integration next tries to update that record, it may fail, skip the change or, in some setups, create a new record because it can't find the old one, which brings the duplicate back. The fix is to list the systems that store record IDs before a large merge, keep the IDs most systems already use where you can, and update the references to merged-away IDs afterward. CRMs that redirect old IDs, such as HubSpot, reduce the problem for links but not for every integration. In Dedupely, the Primary Record rule decides which record survives, and the CRM's own merge decides its ID, so in a CRM like Salesforce or Pipedrive, links that point at the surviving record keep working. The Merge History CSV export lists the original record IDs to update.

How do you update CRM records by ID in an import?

Include the record ID column in the import file and map it to the CRM's ID field, so the import updates existing records instead of creating new ones. Many CRMs, such as HubSpot and Salesforce, can match an import to existing records this way, and it's more reliable than matching on a name or email address, which can change or differ slightly. Before importing, check that the IDs in the file are current. A spreadsheet exported before a merge can hold IDs of merged-away records, and rows without a valid ID may be added as new records, which creates duplicates. Export a fresh file after any large merge and use that as the base for the update. Dedupely often detects new records within 1–5 minutes. Auto Match and Auto Merge can then check your Duplicate Searches for new duplicates on a schedule.

Why doesn't an undo always bring back the original record IDs?

The CRM removed the merged-away records during the merge, and a re-created record is a new record to the CRM, so it gets a new ID. That's true whether the records are rebuilt by hand from a backup or re-created by an undo feature. The details, values and links can come back, but a re-created record's original ID can't. A record restored from a recycle bin or trash can come back with its original ID instead. Links, saved reports and integrations that pointed at the old IDs don't follow the re-created records, so they need to be updated with the new IDs after an unmerge. The surviving record keeps its own ID. In Dedupely, most merges can be undone for 30 days from Merge History, and the undo re-creates the merged-away records with new IDs while the Primary Record stays. In Salesforce, a record merged in the last 15 days comes back from the Recycle Bin with its own ID.