Comparteix via


disableAsyncTimeout (referència de l'API del client)

Desactiva el temps d'espera del controlador d'incidències. En lloc d'això, l'esdeveniment espera fins que es compleixi la promesa del controlador d'incidències. Més informació sobre els temps d'espera d'Async OnSave

Sintaxi

executionContext.getEventArgs().disableAsyncTimeout()

Exemple

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
preventPer defecte
preventDefaultOnError