Xrm WEBAPI Calls as Syncronous sample code using Promise

By default XRm WebAPI are asynchronous and to make this synchronous you can use below code structrure with using Promise. Hope this helps.