web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Contact Deduplication

(1) ShareShare
ReportReport
Posted on by 143

Hello Community,

 

I’m looking to solve a contact deduplication issue for a customer.

 

There are about 1 million contact records (a massive number of duplicates). They imported spreadsheets into the system over the years without any guidance or best practice on how not to create duplicates.

 

I have set up Duplicate Detection Rules on the Contact

  1. Go to Settings → Data Management → Duplicate Detection Rules.
  2. Create rules for:
    • Contact: Email, Full Name + Mobile, Full Name

 

How best can I approach these issues - Data deduplication, matching logic, automation, auditing, and preventive controls.

 

The customer does not allow any third party tool (XRM Toolbox etc) on there tenant.

 

I would like to automate (Automated Merge) this process and be able to count and log the deletions. All using low code. I’m not a developer.

 

I look forward to all the support.

 

Kind regards,

 

Chi

I have the same question (0)
  • Suggested answer
    #ManoVerse Profile Picture
    455 on at
    Understanding your current state
    Volume: ~1 million contacts, many duplicates.
    Root Cause: Historical imports without validation.
    Constraints: No third-party tools, must use low-code (Power Automate, OOB features).
     
    for maintain uniqueness : 
    Consider adding Alternate Keys for Email or Mobile to enforce uniqueness going forward.
    Use Exact Match for Email and Mobile, and Fuzzy Match for names if possible.

    Deduplication Approach
    Since you cannot use XRM Toolbox or external tools, recommened approach would be power automate or data flows:
    Option 1: Use Bulk Merge via Power Automate
    Create a Power Automate flow:
    Trigger: Scheduled or manually.
    Action:
    Query contacts using List Records with OData filters based on your duplicate detection logic.
    Group by Email or Mobile.
    For each group:
    Keep the oldest or most complete record.
    Merge duplicates using the Dataverse Merge action (available in Power Automate).
    Log the merge in a custom entity or Excel file for auditing.

    Option 2: Use Dataflows for Preprocessing
    Use Power Query Dataflows to:
    Pull all contacts.
    Apply grouping and deduplication logic.
    Push cleaned data back into Dataverse.
     
    Automation
    you can schedule Power Automate flow to run during off-peak hours.
    Use batching to avoid hitting API limits (process in chunks of 5,000 records).
     
    Auditing & Logging
    Create a custom entity called “Deduplication Log”:
    Fields: Original Record ID, Merged Record ID, Date, User.
    In your flow, after merging, create a log entry.
    Alternatively, you can write logs to Excel in OneDrive for easy reporting.

    Preventive Controls
    Enable Duplicate Detection Rules for:
    On Create and On Update.
    Use Alternate Keys for Email and Mobile.
    Train users on proper data entry.
    If imports are still happening:
    Use Data Import Templates with duplicate detection enabled.
     
    Challenges
    Performance: 1 million records will require incremental processing.
    Merge logic: Decide which record to keep (oldest, most complete, etc.).
    API limits: Use pagination and throttling in Power Automate.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans