Compartir por


disableAsyncTimeout (Referencia da API do cliente)

Desactiva o tempo límite para o xestor de eventos. En vez diso, o evento espera ata que se cumpra a promesa do xestor de eventos. Máis información sobre os tempos límites de Async OnSave

Sintaxe

executionContext.getEventArgs().disableAsyncTimeout()

Exemplo

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