I have encountered an unexpected error. The problem is that the code we used to restrict saving via script is no more working in Appointment entity post wave 2 update it seems. Even in trial I faced same issue only for Appointment entity. The code still work in classic web forms & even in other OOB or custom entities too.
Form Customization:
Handler:
//Functoin to call on save
function onSave (executionContext) {
//Local variables
var functionName = "onSave";
var saveEventArgs = null;
try {
//Get save event arguments
saveEventArgs = executionContext.getEventArgs();
//Prevent Save
saveEventArgs.preventDefault();
}
catch (ex) {
Appointment_ShowAlertDialog.throwError(functionName, ex.message);
}
}
Hi,
Please check below post.
Thanks,
Anand
I have done all the steps and turned it to false, but I am still getting the error when preventing save?
Hi alketa
That is the known bug in Scheduling Engine on the appointment form. I have documented the symptoms of the issue in my blog post below. Please contact Microsoft Support to provide you with the tools (FCB.Editor) and instructions to disable the scheduling engine.
http://linnzawwin.blogspot.com/2020/01/model-driven-apps-find-out-why.html
Were you able to fix this problem?
I'm having the same issue on Appointment entity in the UCI only.
This looks like a specific bug, so please get in touch with the support team to analyze this in more details, understand the root cause, and identify potential workarounds and fixes.
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156