共用方式為


disableAsyncTimeout (用戶端 API 參考)

停用事件處理常式的逾時。 相反地,事件會等到事件處理常式的承諾完成為止。 深入瞭解 Async OnSave 逾時

語法

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

getSave模式
is預設預防
預防預設
預防預設錯誤