禁用事件处理程序的超时。 相反,事件会等待事件处理程序的承诺完成。 详细了解 Async OnSave 超时
Syntax
executionContext.getEventArgs().disableAsyncTimeout()
Example
async function myHandler(context) {
context.getEventArgs().disableAsyncTimeout();
// The 10000ms time out will not be disabled if the above line does not come before all async awaits
await Xrm.Navigation.openConfirmDialog({ text: "Are you sure you want to save?" });
}
相关文章
getSaveMode
isDefaultPrevented
preventDefault
preventDefaultOnError