Hi,
I am having problem in CRM form save and refresh.
Once I save the form using javascript command Xrm.Page.data.entity.save(), the page is not refreshed. I need to full refresh the form. Because after saving all fields will be disabled, but that is not happening unless I manually reload the form again after save.
I used the Xrm.Utility.openEntityForm() command to reload after save command, but this time I am getting a popup "Your changes are not saved. are you navigate from this page". This is because the Xrm.Utility.openEntityForm() is executed even before the save operation is completed. looks the save is asynchronous.
Questions:
1. Why CRM does not reload the form automatically on save
2. How to do synchronous save using javascript command
3. Why Xrm.Page.data.entity.save().then(success, failure) is not working.
4. What is the solution to save the form, and then reload the form again.
*This post is locked for comments