Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Consuming Default messages from Web API

Posted on by 60

Hello,  in Microsoft Documentation, they say that the new Web API is almost in full parity with the old SOAP  service endpoint.

But I didnt found any examples , or even if I'am able to call system default messages(like RetrieveDuplicates,assign,WinOpportunitty,etc) from the Web API endpoint(specificly from javascript), anyone have any examples, or know if it is possible ?

*This post is locked for comments

  • Rizwan Aarif Profile Picture
    Rizwan Aarif 480 on at
    RE: Consuming Default messages from Web API

    Hi Ravi,

    As suggested by you, I am looping through each record found in "results" and executing a RetrieveDuplicateRequest but I am getting "Duplicate detection is not supported on this record type.'" error. I am using this for Account entity.

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Consuming Default messages from Web API

    This sounds like a great idea!

  • Verified answer
    MatheusJacob Profile Picture
    MatheusJacob 60 on at
    RE: Consuming Default messages from Web API

    I could`nt make it work too, I was able to make it work just passing the Id parameter, wich is absolutely non sense to require an Id in something that the main use is to check before you create. but whatever...

    I ended up creating a new action and making my duplicate business logic in the action plugin(so I can return an entityCollection)

    Thanks anyway

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Consuming Default messages from Web API

    I struggled with that function but nothing worked fine passing just one field. Here are results - social.msdn.microsoft.com/.../crm-web-api-retrieveduplicates-function

    If you could find a way to make it work without passing identifier it would be great.

  • MatheusJacob Profile Picture
    MatheusJacob 60 on at
    RE: Consuming Default messages from Web API

    Hi Andrii, thanks for the response...

    but all the examples are either actions or functions, I needed to consume the Requests itself.

    For example, the RetrieveDuplicate Function, needs and ID, but I want to consume the Request, so I can call it passing one field string value...

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Consuming Default messages from Web API

    Hello,

    You can check this - butenko.pro/webapi-examples-index

    I blogged some.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans