# Dynamics 365 Duplicate Accounts and Contacts | Storek

> Find duplicate accounts and contacts in Dynamics 365 with duplicate detection rules and jobs, then keep them out of your reports while you merge.

Source: https://storek.io/blog/dynamics-365-duplicate-accounts-contacts

1.  [Home](https://storek.io/)
2.  [Blog](https://storek.io/blog)
3.  Dynamics 365 Duplicate Accounts and Contacts

Platform how-to · Sales operations

# Dynamics 365 duplicate accounts and contacts: detection rules, detection jobs and reports you can trust

Dynamics 365 can warn people before they create a duplicate and scan for the ones already there. Here is a practical routine that uses both, and keeps your reports right in the meantime.

Storek teamUpdated November 12, 20264 min read

![Whiteboard in the playful look: 418 duplicate account groups, horizontal bars by how the record was created with web forms at 142 and trade show lists at 118, a donut of matching clues and a note to fix the web form first.](https://storek.io/blog/dynamics-365-duplicate-accounts-contacts/hero.webp)

Sample dataDuplicate CRM accounts traced back to their source. Illustrative data.

Marcus Bell is the CRM administrator at Halloway Medical Supplies. The sales director asked him a fair question: why did the territory dashboard show 214 hospital accounts in the North when the field team visited about 170? Marcus searched for one familiar name and found “St. Brennan’s Hospital”, “Saint Brennans Hospital” and “St Brennan Hospital Trust”. Three accounts, three owners, activities split across all of them.

Halloway had duplicate detection turned on. It had caught many duplicates at entry. The ones it missed had arrived through a trade-show import, a partner list and web forms that create records without a person in the loop.

## How Dynamics 365 handles duplicates

### Duplicate detection rules

A duplicate detection rule tells Dynamics when two records count as duplicates: for example, contacts with the same email address, or accounts with the same account name. Rules are managed by a system administrator in the data management settings. Each rule has a base record type, a matching record type and the fields to compare, with options such as exact match or the first few characters.

Useful starting rules:

1.  **Contacts with the same email address.**
2.  **Accounts with the same website or email domain**, if you store one.
3.  **Accounts with the same main phone**, normalised if your data allows it.
4.  **Leads compared with contacts on email**, so a known person filling in a form is spotted.

Remember that rules compare the field values as stored. “St.” and “Saint” are different strings to a rule, which is why account name alone catches less than you would hope.

### Duplicate detection jobs

Rules act when records are saved. To scan what is already there, run a duplicate detection job on the record type. The job lists the duplicates it finds so someone can review and merge them. Schedule it after big imports.

### Merging

Dynamics merges two records at a time. You choose the master record and which field values survive; related records such as activities, notes and child contacts move to the master. Agree the rule first: most recent activity, or the account with active orders.

## Finding what the rules miss

Rules are only as good as the stored values. For the existing data, export accounts and contacts, using Advanced Find or a view and the Export to Excel option, with IDs, names, emails, phones, websites and addresses. Then:

1.  **Normalise:** lower-case, remove “Ltd”, “Inc”, “Trust” and punctuation, expand “St.” to “Saint” where it starts a name, keep phone digits only.
2.  **Match on clues:** one strong clue (email, phone, registration number) or two supporting clues (domain, name, postcode).
3.  **Group:** if A matches B and B matches C, they are one account.

The [identity matching guide](https://storek.io/blog/crm-identity-matching-across-systems) explains which clues are strong and which are only supporting.

## The question the sales director asked

In Storek

You ask

“How many distinct hospital accounts do we have per territory, with duplicates counted once?”

What Storek did

-   normalised account names, phones and email domains from the Dynamics export
-   grouped accounts that share a phone, a domain or a matching name and postcode
-   counted each group once per territory and listed the groups for merging

The answer

The North has 168 distinct hospital accounts, not 214, and the list of 46 folded records is ready for Marcus to merge.

Dig deeper: see how it works

The Dynamics records stay as they are. Storek counts each group once in every answer and dashboard and keeps the clue that linked each pair, so Marcus can merge the confirmed groups in Dynamics at his own pace, and the numbers are right in the meantime.

For analysts

```
SELECT territory,
       COUNT(DISTINCT accountid)       AS records,
       COUNT(DISTINCT account_group)   AS distinct_accounts
FROM dyn_accounts a
JOIN account_groups g USING (accountid)
WHERE a.industry = 'Hospital' AND a.statecode = 0
GROUP BY territory;
```

The chart at the top of this page shows what Marcus found when he looked at where the duplicates came from: imports and forms created most of them. He added a pre-import check against existing accounts, which stopped the next trade-show list from adding another batch.

## A routine that keeps Dynamics clean

-   **Before every import:** match the file against existing accounts and contacts on email, phone and domain.
-   **After every import:** run a duplicate detection job on the affected record type.
-   **Monthly:** merge the confirmed groups and track how many remain.
-   **In every report:** count distinct groups, not records, so dashboards stay right between clean-ups. The [guide to filtering duplicates](https://storek.io/blog/crm-duplicate-records-filter-not-delete) covers this step in detail.

About the examples

Halloway Medical Supplies, St. Brennan’s Hospital, Marcus and every figure here are invented to illustrate the method.

## Where Storek fits

Storek connects to Dynamics 365 through its export or connector, next to your billing, support and spreadsheet data. It works out which accounts and contacts describe the same organisation or person and counts each once in every answer, dashboard and whiteboard, while Dynamics stays untouched. Read more on the [data mapping page](https://storek.io/platform/data-mapping).

AccuracyMetric definitionsOperations

## Keep reading

[Platform · Data mapping**Your data maps itself. Here is how.**Open the page →](https://storek.io/platform/data-mapping)[Platform how-to**Filter CRM Duplicates Out of Reports, Not the CRM**Read the article →](https://storek.io/blog/crm-duplicate-records-filter-not-delete)[Platform how-to**Match Customers Across CRM, Billing and Support**Read the article →](https://storek.io/blog/crm-identity-matching-across-systems)

FAQ

## Questions, answered.

Where are duplicate detection rules in Dynamics 365?

System administrators manage them in the data management area of the settings. Each rule names the record type, the record type to compare against, and the fields that must match, such as email address or account name.

Do duplicate detection rules find existing duplicates?

Rules warn when a record is created or updated. For records already in the system, run a duplicate detection job, which scans the records and lists the duplicates it finds for review.

How many records can I merge at once in Dynamics 365?

Merging works on two records at a time: you pick the master record and choose which field values to keep. Child records such as activities and contacts move to the master.

Will filtering duplicates in reports change Dynamics?

No. Filtering happens in the reporting layer. Dynamics keeps every record as it is until someone merges them there.

Book a demo

## See your own data, delivered.

30 minutes. Your data or our sample. No slide deck. Pick a time straight after the form.
