편집

다음을 통해 공유


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?" });
 }

getSaveMode
isDefaultPrevented
preventDefault
preventDefaultOnError