Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

How to merge duplicate records with the most accurate

Posted on by 390

Hi All,

How do I merge identical and duplicate records in a plugin, I know it is possible using point and claick, but how can I do the same to bulk records using a plugin code. Thanks 

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to merge duplicate records with the most accurate

    Hi Victor,

    You can check this sample: docs.microsoft.com/.../sample-enable-duplicate-detection-and-retrieve-duplicates

    Hope this helps.

  • Victor Onyebuchi Profile Picture
    Victor Onyebuchi 390 on at
    RE: How to merge duplicate records with the most accurate

    Thanks !!

  • Victor Onyebuchi Profile Picture
    Victor Onyebuchi 390 on at
    RE: How to merge duplicate records with the most accurate

    Thanks Ravi, but it would be best if you draft a simple pseudocode with the retrieveDuplicates implementations. Thanks

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: How to merge duplicate records with the most accurate

    Hi Victor Onyebuchi,

    This code sample will teach you how to merge records.

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to merge duplicate records with the most accurate

    Hi,

    You can use "RetrieveDuplicate" to find the duplicates of the record getting created and then one you find the duplicate, select any of the existing record as master and then use "Merge" request to merge it.

    Hope this helps.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans