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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

XMLHtttpRequest with sync mode

(0) ShareShare
ReportReport
Posted on by 155

For Javascript we had XMLHtttpRequest since some time and now also have Xrm.WebApi for use with Web API.

Between the two XMLHtttpRequest with sync mode is very useful for short queries and we would like to keep using this to avoid complicated code and effort to make the change. In this context I wanted to know if anyone is aware if XMLHtttpRequest sync mode is planned to be deprecated and if we will be unable to use this in future. Any information or reference from MS regarding this will be helpful.

Thanks in advance.

I have the same question (0)
  • bravoss Profile Picture
    155 on at
    RE: XMLHtttpRequest with sync mode

    Do we also have some guidance from MS on this as I would assume quite a bit of the current JS code in crm would be using the sync method at least from my observation.

    Usually in crm a common use is to use Javascript and Web API to drive some form of UI display on form. In this case it makes less sense to only have an option of async and driven by promises ?

  • meelamri Profile Picture
    13,216 User Group Leader on at
    RE: XMLHtttpRequest with sync mode

    Hi Bravoss,

    Technically, this is not related to Dynamics. XHR is part of the W3C standard. According to this standard, synchronous XHR is now in a deprecated state. It is recommended that developers move away from the synchronous API and use asynchronous requests instead.

    developer.mozilla.org/.../Synchronous_and_Asynchronous_Requests

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 394

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 123

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 106 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans