Xrm WEBAPI Calls as Syncronous sample code using Promise


This article provides a code sample for making Xrm WebAPI calls synchronous using promises. By default, Xrm WebAPI calls are asynchronous, but this code structure allows you to make them synchronous. The code sample demonstrates how to validate a zip code by retrieving records from a custom entity and displaying an error message if the postal code mapping is not found.


Article 18m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time