Restrict/Cancel Save operation conditionally in JavaScript as per Async operations result in Dynamics 365

Sometimes you get requirements where you are doing some validation check in JavaScript by calling XRM.WebAPI or some Async operation and if validation failed, you want to restrict Save operation. If the call code is synchronous then there is no issues. But if the code is asynchronous, you need to take special care otherwise it…
Read more