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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to find duplicate records in two different entities

(0) ShareShare
ReportReport
Posted on by 233

Hi,

We have text field "CR No" in Lead and Account entities. I want to pull all the duplicate Lead records which CR No matching with Account CR No.

I want to show all these extracted duplicate Lead records in CRM, what are the options to achieve this? 

Please let me know if need any other details.

Thanks,

Yadav

I have the same question (0)
  • Suggested answer
    Sarah Daniel Beshay Profile Picture
    Microsoft Employee on at

    Hi Naveen, 

    You can try using Duplicate Detection Rules. Choose the Base Record Type as "Lead" and the Matching Record Type as "Account", and then select the field CR No from both Lead and Account to check if there is an exact match. 
    This is an example for comparing Lead "Email" field with "Account" "Email" field. 
    pastedimage1629627992408v1.png

    You can read more about Duplicate Detection Rules, how to set them up and how they work in the link below:
    Set up duplicate detection rules to keep your data clean - Power Platform | Microsoft Docs

  • Suggested answer
    Ram Prakash Duraisamy Profile Picture
    2,289 on at

    Hi Naveen K,

    Please create a Duplicate Detection rules in the Environment and Publish it

    pastedimage1629640403217v1.png

    Entity Record = new Entity("contact");
    Record.Attributes["firstname"] = "test";
    Record.Attributes["lastname"] = "crm";
    Record.Attributes["mainphone"] = "994473322881";

    and try using

    var request = new RetrieveDuplicatesRequest
    {
    //Entity Object to be searched with the values filled for the attributes to check
    BusinessEntity = contactRecord,
    //Logical Name of the Entity to check Matching Entity
    MatchingEntityName = contactRecord.LogicalName,
    };
    var response = (RetrieveDuplicatesResponse)_service.Execute(request);

    You can get the colunt in "response.DuplicateCollection.Entities.Count"

  • Kristina_Skyline Profile Picture
    90 on at
    Hello,
    You should take a look at a new user-friendly De-Dupe solution published on AppSource! Depending on your need it allows you to set up duplicate detection rules using standard Dynamics 365 functionality, but to review and merge duplicates in a completely renewed and comfy interface. 
    No more old, user-incomprehensible list of duplicates repeating with each merging step. Plus, since it has just been launched on AppSource, the solution is FREE of charge and includes support.
    Feel free to visit Skyline Consultants website for more details https://skylineconsultants.com/de-dupe-dynamics-365/.
    Best,
    Kristina

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans