CRM data quality · merge on the identity, not on the spelling
CRM deduplication without merging the wrong records
The short answer
CRM deduplication merges the records that describe the same company or person. To do it without merging the wrong ones, resolve each account to its company page and each contact to a profile URL, then merge only the records that share that identifier. Unsure matches go to a review queue, and names and domains stay on the record as attributes, never as the key.
On this page9 sections
- What is CRM deduplication?
- Why do name and domain rules merge the wrong records?
- How do you deduplicate a CRM on a stable ID?
- Which record survives a merge?
- How do you deduplicate contacts without merging two people?
- How do you deduplicate Salesforce and HubSpot on a stable key?
- How do you stop duplicates from coming back?
- How do you resolve CRM records to a key with the API?
- Sources and method
Every CRM ends up with two records for one company. A rep types “Stripe Inc.” after a call, an import adds “STRIPE” with its domain, and a year later two people own the same account. The obvious fix, merging records that look alike, is also the most dangerous step of CRM data quality: a wrong merge mixes two companies’ owners, deals and history, and nothing undoes it cleanly.
What is CRM deduplication?
CRM deduplication finds the records that describe the same company or the same person, and merges them into one that keeps the history, the owner and the activity of all of them. It is a case of entity resolution: deciding, record by record, which real company or person each one describes.
It can go wrong in two directions, and they do not cost the same:
- A missed duplicate. Two records stay apart. Two reps call the same company and reports count it twice. Annoying, and easy to fix later.
- A false merge. Two different companies become one account. Owners, deals and activity get mixed, and splitting them again is manual work, record by record.
A method that trades fewer missed duplicates for more false merges is a bad trade. The one below is built to avoid the second error first.
Why do name and domain rules merge the wrong records?
Because a name and a domain describe a company, they do not identify it. Here are four real accounts, written the way CRM records often store them, under three merge rules:
- Stripe Inc.no domain
- STRIPEstripe.com
- Delta Air Linesdelta.com
- Delta Vacationsdelta.com
Merge on
Same name
- Stripe Inc.
- STRIPE
- Delta Air Lines
- Delta Vacations
Four accounts. The two Stripe records never meet.
Merge on
Same domain
- Stripe Inc.
- STRIPE
- Delta Air LinesDelta Vacations
The travel subsidiary disappears into the airline, and Stripe stays split.
Merge on
Same company page
- Stripe Inc.STRIPEcompany/stripe
- Delta Air Linescompany/delta-air-lines
- Delta Vacationscompany/delta-vacations
Three companies, three accounts.
Loosening the name rule into fuzzy matching does not help. The similarity threshold that joins “Stripe Inc.” and “STRIPE” also joins two companies that are both called Delta, and there are several. You swap missed duplicates for false merges.
The domain rule fails for a different reason: structure. Delta Vacations and Delta Air Lines both list delta.com, and each has its own company page. Whether Delta Vacations should be a separate account or a child account of the airline is a decision for your team. A domain rule takes it for you, without telling anyone.
A name and a domain describe a company. A company page identifies it.
How do you deduplicate a CRM on a stable ID?
Resolve every record to the identifier of the entity it describes, then merge the records that share it. That is how to deduplicate CRM records without a false merge, and the order matters: a merge decided before the key is known is a merge decided on spelling. The identifier you merge on is your matching key.
- Definition Matching key also called join key
- The value two datasets share that you use to decide that two records belong together. To find the people at a company, the key that holds is the company page their jobs are attached to, not the company's website.
PreciselyA matching key is the attribute used to join records from two datasets, such as an email, a profile URL or a company page URL. In B2B contact data, a person's current job points to a LinkedIn company page, while the domain comes from the website field of that page, which whoever runs the page fills in. Many pages can give the same domain, so a domain is a weak key for people; the company page is the key their jobs are attached to.
- Pick one key per object. For accounts, the LinkedIn company page and its numeric ID; the guide on the LinkedIn company ID explains why the ID holds better than a name, a domain or even the page URL. For contacts, the profile URL.
- Resolve every account. Send what the account holds to Company Match: the name, the domain, the headquarters city. The domain is the field that helps the most.
- Use the shorter road for clean domains. When an account holds a domain and nothing else, Domain to LinkedIn returns the company page for it in one call.
- Resolve every contact. Send the name and the company to Person Match. Past jobs are searched too, so a contact who left the company on the record can still be found.
- Write the key only when the answer is matched. An ambiguous answer goes to a review queue with its candidates, ranked. A not found answer leaves the record as it is, flagged as unresolved, and counts no record.
- Group by key, then merge. Accounts first, then contacts, so that contacts land on accounts that are already settled.
The review queue is not a failure of the method. It is where it refuses to guess: a typo, a common name or a domain several companies use comes back with its candidates, and a person picks in seconds.
Which record survives a merge?
The key decides which records merge. A survivorship rule decides what the merged record keeps, and it should be written down before the first merge:
- The master record is usually the one with open deals or the most activity, so that owners and reports move the least.
- Each field keeps the value a source confirmed last, not the one typed last. A title typed in 2023 does not beat a title read from the profile this month.
- The other values stay as attributes: the second domain, the old spelling, the other email. They help match what comes in next, and they keep the merge explainable.
How do you deduplicate contacts without merging two people?
On the profile URL. Email is a weak key for people: the same person can arrive with a personal address on a form and two work addresses over two jobs. Names are weaker still. Here are two contact records that no exact rule would join:
Contact from a demo request
last_nameBlitzfirst_nameAntoinecompany_nameBlitzAPImatchedconfidence 0.99Key writtenContact from an event list
last_nameBlitzfirst_nameA.company_domainblitz-api.aiambiguousconfidence 0.76One candidate, under the 0.8 bar: a reviewer confirms it
One contact
Antoine BlitzFounder, BlitzAPI, New Yorklinkedin_urllinkedin.com/in/antoine-blitz-5581b7373The same on both records: merge themThe opposite case matters as much. Two contacts called John Smith at Google are not a duplicate until something else agrees, such as the title or the city: Person Match answers ambiguous for that row, with the candidates, and the merge waits for a person.
How do you deduplicate Salesforce and HubSpot on a stable key?
Store the key in a field of its own, then point the CRM’s own duplicate tools at that field. The CRM keeps doing the merging; it just stops deciding on spelling.
Salesforce deduplication
Salesforce deduplication runs on two settings. A matching rule says which fields to compare and how, with an exact or a fuzzy method. A duplicate rule says what happens when the matching rule fires: alert the user, or block the save.
- Add a custom field to accounts for the company page, and one to contacts and leads for the profile URL.
- Create a matching rule with an exact match on each of those fields, and a duplicate rule that alerts on create and edit.
- Merge the flagged pairs. The merge keeps one master record and moves the related contacts and opportunities onto it.
HubSpot deduplication
HubSpot deduplication is built in, on two keys: contacts on the email address, and companies on the company domain name. On import, a company whose domain already exists is added to the existing company. That is exactly the delta.com case above: the travel subsidiary would land on the airline.
- Create a company property that requires unique values for the company page, and a contact property for the profile URL.
- On import, choose that property as the identifier instead of the domain.
- Companies created through the API are not deduplicated on the domain, so an integration should look up the key before it creates a company.
How do you stop duplicates from coming back?
Resolve at the door. Every import, form and integration matches the incoming row before it creates anything: when the key already exists, it updates the record; when it does not, it creates one with the key already filled.
Lists are where most duplicates come from. An event file or a partner spreadsheet writes its companies the way people say them: match those company names before the rows reach the CRM, and each account arrives with its page.
The people on the same list get the same treatment. A name and a company are enough to find the profile behind each contact, and a contact that arrives with its profile URL is checked against the contacts you already have.
The key keeps working after the merge. A refresh reads each record by its key, so a contact who changed jobs is found again by their profile URL instead of being lost under the old company, and the change becomes something to act on. The CRM hygiene use case wires those refreshes to the events of your CRM.
For builders
Two calls give every record its key. This part shows both on the real runs of November 29, 2026, then the grouping step in a few lines.
How do you resolve CRM records to a key with the API?
An account in, the company page it describes out, with a status and a confidence score.
Send
company_name- The name as the account stores it. Legal suffixes, accents and small typos are tolerated.
company_domain- The most reliable field. Send it whenever the account has one.
company_linkedin_url- An exact match, when the account already holds a page.
location- The headquarters city or country. It tells apart pages that share a name or a domain.
Read
status- matched, ambiguous or not_found. Write the key on matched only.
match.linkedin_url, match.domain, match.confidence- The account key, the domain the page gives, and a confidence score from 0 to 1.
candidates[]- Up to 10 other plausible pages, most probable first: what the review queue shows.
A contact in, the profile it describes out, with a status and a confidence score.
Send
last_namerequired- The only required field. An initial is accepted.
first_name- Nicknames, initials and typos are tolerated.
company_name, company_domain- The company fields help the most. Past jobs are searched too.
Read
status- matched, ambiguous or not_found.
match.linkedin_url- The contact key.
candidates[]- Up to 10 other plausible people, most probable first.
Both count 1 record when the status is matched or ambiguous, and 0 when it is not_found. A matched answer needs a confidence of 0.7 and a lead of 0.5 on the next candidate for a company, 0.8 and 0.5 for a person. Plans and rate limits are on the BlitzAPI pricing page.
The real runs
The two Delta accounts of the first diagram, each sent with the name and the domain it stores. Both share delta.com; each comes back with its own page:
{
"status": "matched",
"match": {
"linkedin_url": "https://www.linkedin.com/company/delta-air-lines",
"name": "Delta Air Lines",
"domain": "delta.com",
"confidence": 1
},
"candidates": []
}{
"status": "matched",
"match": {
"linkedin_url": "https://www.linkedin.com/company/delta-vacations",
"name": "Delta Vacations",
"domain": "delta.com",
"confidence": 0.94
},
"candidates": []
}The second contact of the second diagram, sent as last_name “Blitz”, first_name “A.” and company_domain “blitz-api.ai”, trimmed to the fields a reviewer reads:
{
"status": "ambiguous",
"match": null,
"candidates": [
{
"linkedin_url": "https://www.linkedin.com/in/antoine-blitz-5581b7373",
"full_name": "Antoine Blitz",
"company_name": "BlitzAPI",
"location": { "city": "New York", "country_code": "US" },
"confidence": 0.76
}
]
}One candidate, under the 0.8 bar for a person: the record waits for a reviewer, who confirms it against the first contact’s key.
Group by key, in a few lines
from collections import defaultdict
from blitz_api import BlitzAPI
client = BlitzAPI() # reads BLITZ_API_KEY
by_key, review = defaultdict(list), []
for account in accounts: # rows exported from your CRM
fields = {"company_name": account["name"], "company_domain": account.get("domain")}
answer = client.identity.company_match(**{k: v for k, v in fields.items() if v})
if answer.status == "matched":
by_key[answer.match.linkedin_url].append(account["id"])
elif answer.status == "ambiguous":
review.append((account["id"], answer.candidates))
# not_found: leave the account as it is
duplicates = {key: ids for key, ids in by_key.items() if len(ids) > 1}Before you merge
- Write the survivorship rule first: which record is the master, which value each field keeps.
- Store the key in a field of its own on accounts, contacts and leads, and match on it exactly.
- Write the key only on matched answers; send ambiguous ones to review with their candidates.
- Merge accounts before contacts, and keep the losing names, domains and emails as attributes.
- Merging on a shared domain: a subsidiary with its own page disappears into its parent.
- Auto-merging an ambiguous answer on its first candidate.
Sources and method
- Written by
- The BlitzAPI team
- Published
- API calls run on
- Company Match, BlitzAPI API reference
- Person Match, BlitzAPI API reference
- Domain to LinkedIn URL, BlitzAPI API reference
- Deduplicate records in HubSpot, HubSpot Knowledge Base
The BlitzAPI team ran every Company Match and Person Match call shown on this page on November 29, 2026. The four accounts in the first diagram are real companies, written the way CRM records often store them; each call returned the company page shown.
The person in the second diagram and in the builders section is Antoine Blitz, founder of BlitzAPI, who agreed to be the example. His profile title is written here as 'Founder, BlitzAPI'.
The Salesforce and HubSpot behaviors are described from their public documentation, read on November 29, 2026.