Update record when checkbox checked using JavaScript and save d365
On checkbox on change following function called -------------------------------------------------------------------- function IsClientDisease(executionContext) { debugger; var formContext = executionContext.getFormContext(); var selectedValues = formContext.getAttribute("ecl_isclientdisease").getValue(); var id = formContext.data.entity.getId().replace("{", "").replace("}", ""); if (selectedValues == 1) { var fetchbooking = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>" + " <entity name='contact'>" + " <attribute name='fullname' />" + " <attribute name='telephone1' />" + " <attribute name='contactid' />" + ...