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
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla