
Hello everyone,
I have an error happens at Xrm.Page.data.save(saveOptions).then(successCallback, errorCallback) function.
My situation is like following:
function StartSave() {
//========================================================
//Clear old notifications
Xrm.Page.ui.clearFormNotification();
//Save Form data
Xrm.Page.data.save().then(SuccessCallback, ErrorCallback);
}
I don't know why this error happens and how to know its root cause. Is OnSave event is not correct??
I used following links samples to mimic its behavior:
I use CRM 2015 on Premise.
Thanks in advance.
Kind Regards,
*This post is locked for comments
I have the same question (0)Hi Wael,
According to the following article: https://msdn.microsoft.com/en-us/library/dn481607.aspx it looks like the save will only work for specific "updated entities" as identified here: https://msdn.microsoft.com/en-us/library/gg328261.aspx#BKMK_UpdatedEntties
It does not look like service appointment is in this list so maybe this is why it is not working?
Hope this helps!
Thanks,