disableAsyncTimeout (Client API reference)
Disables the timeout for the event handler. Instead the event waits until the event handler's promise is fulfilled. Learn more about Async OnSave timeouts
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?" });
}
Related articles
getSaveMode
isDefaultPrevented
preventDefault
preventDefaultOnError
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈