Async Save Feature+ Xrm.WebAPI+ Prevent Save – Conditionally restrict save for xrm webapi retrievemultiple call on save event Dataverse/ Dynamics 365

In this blog post, we’ll walk through an asynchronous JavaScript function restrictAppointments_OnSave_Async with Xrm.WebAPI.ReatrieveMultipleRecord that accomplishes this by restricting the number of appointments a patient can have with the same doctor on the same day in a Dynamics 365 environment. Problem Statement The goal is to prevent a patient from booking more than two appointments…
Read more