Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

RetrieveDuplicate WebAPI

Posted on by 230

Hi, im attempting to use the RetreiveDuplicate WebAPI without much success. First off, to confirm my understanding, the RetrieveDuplicate WebAPI confirms whether a specific record is a duplicate (based on an existing Duplicate Detection Rule). If this correct?

I tried it in many different ways, i get: `"message""Resource not found for the segment 'RetrieveDuplicates'.",`

Im doing something like the below:

https://<ServerURL>/OrgName/api/data/v8.2/RetrieveDuplicates(BusinessEntity=@BE,MatchingEntityName=@MEN)?@BE={'@odata.type':'Microsoft.Dynamics.CRM.new_LogicalCollectionName','new_recordid':'DF6FC529-CF4A-EB11-8118-00155D1B8835'}&@MEN='new_LogicalCollectionName'

  • Jai Hashwani Profile Picture
    Jai Hashwani 120 on at
    RE: RetrieveDuplicate WebAPI

    I figured the problem. Since the lookup is type Customer the format is:

    "parentcustomerid_account@odata.bind" = "/accounts(xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx),

  • Jai Hashwani Profile Picture
    Jai Hashwani 120 on at
    RE: RetrieveDuplicate WebAPI

    Hi Bipin,

    I did try this and unfortunately, it didn't work for me. I have got the below error.

    The property 'xxx' does not exist on type 'Microsoft.Dynamics.CRM.contact'. Make sure to only use property names that are defined by the type or mark the type as open type."

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: RetrieveDuplicate WebAPI

    HI,

    You need to pass in below format -

    "msft_emergencycontact@odata.bind" = "/contacts(b46c359b-bb2c-ec11-b6e6-6045bd72faf4)"

    msft_emergencycontact -> Lookup field schema name

    contacts-> Lookup Target Entity in plural form

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Jai Hashwani Profile Picture
    Jai Hashwani 120 on at
    RE: RetrieveDuplicate WebAPI

    Hi Folks, I have been able to use the RetrieveDuplicates API however, I am trying to figure out if we can pass lookup value to it as a param?

  • JoeO Profile Picture
    JoeO 230 on at
    RE: RetrieveDuplicate WebAPI

    Hi Clofly,

    That was actually one of the first things i checked. I even disabled/re-enabled, then unpublished/re-published. Same issue. I've just noticed however that im not even getting the duplicate record pop-up when creating a (for example) duplicate contact. I think ill open a PSS ticket.

  • cloflyMao Profile Picture
    cloflyMao 25,196 on at
    RE: RetrieveDuplicate WebAPI

    Hi Joe,

    Have you ever disabled duplicate detection of system? 

    From my test, when I disable the option in Settings > Data Management > Duplicate Detection Settings, all DD rules will be unpublished accordingly, then it will also throws 500 error if I execute the function.

    Therefore, please check whether the option is enabled and all of DD rules in your environment are in published status.

    Regards,

    Clofly

  • JoeO Profile Picture
    JoeO 230 on at
    RE: RetrieveDuplicate WebAPI

    My current version is Update 2.5 (8.2.5.0004)

  • cloflyMao Profile Picture
    cloflyMao 25,196 on at
    RE: RetrieveDuplicate WebAPI

    Hi Joe,

    Are you using Dynamics 2016?

    According to the article:

    https://www.xrmcoaches.com/2016/03/dynamics-crm-sdk-8-0-2-is-available/

    RetrieveDuplicates function was added with update roll 1, please check whether the function is supported in your current version.

    Regards,

    Clofly

  • a33ik Profile Picture
    a33ik 84,321 Most Valuable Professional on at
    RE: RetrieveDuplicate WebAPI

    Hello,

    I see no mistakes in your code. I believe you will have to do the troubleshooting on your side to figure out what exactly is wrong.

  • JoeO Profile Picture
    JoeO 230 on at
    RE: RetrieveDuplicate WebAPI

    Hi Andrew

    I reviewed the site and used the JS version. It doesnt work work for me. See below

    2021_2D00_01_2D00_01-15_5F00_03_5F00_49_2D00_.png

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,607 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,847 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans