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.
Login now to access my digest by 365.Training