Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

XMLHtttpRequest sync mode for Web API

Posted on by 155

For Javascript XMLHtttpRequest was most commonly used and recently we also have been provided with Xrm.WebApi for use with Web API.

Comparing the two XMLHtttpRequest with sync mode is more convenient and we have been using it with Web API for short queries and would like to keep using it to avoid complicated code and effort for change. Since there is some confusion regarding the support for sync going forward I would like to know if we have any guidance in this matter and if this is going to be unsupported and we would be forced to move to an async use in future. Does anyone know and have any reference from MS for this?

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: XMLHtttpRequest sync mode for Web API

    Hello,

    The problem with sync requests that those block the execution. I haven't heard if Microsoft plans to make sync calls unsupported but the main intention is to move to async execution. Can you please provide any scenarios of why sync is more convenient than async? Promises chaining and usage of async/await resolve a lot of issues.

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