The OnSave event in Model-Driven Forms can now execute asynchronous code, allowing for requests to be made before saving a record. Previously, the only way to make requests before saving was to stop the saving process, make the requests, and then start the saving again. However, this had some issues. Now, with the "Async OnSave" option, promises can be returned from the OnSave handler. There is a limit of 10 seconds for the OnSave handler to wait for the promises to resolve. To show a confirm dialog in the OnSave event, the disableAsyncTimeout function can be used to disable the timeout. This allows the user to confirm whether or not to save the record.
Login now to access my digest by 365.Training