Announcements
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.
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 ?
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
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156