I want to add a callback to the form's save to fire the OnLoad event handler after the save has completed. I also want to force the page to refresh after the save is completed.
Google has shown me many web pages that reiterate the same information in the MSDN article, but they don't explain where to put the save method to add a callback after the form finishes saving.
I know that I can add Xrm.Page.data.refresh(true).then(callback) to a form control and have the page refresh that way, but I want the page to refresh after the save has completed.
How does one use Refresh() to refresh the form after the form is done saving?
Also, how do you use Save() to add a callback to the saving of the form that will run after the form is done saving?