次の方法で共有


disableAsyncTimeout (クライアント API 参照)

イベントハンドラーのタイムアウトを無効にします。 代わりに、イベントはイベント ハンドラーの約束が果たされるまで待機します。 非同期 OnSave タイムアウトの詳細について

構文

executionContext.getEventArgs().disableAsyncTimeout()

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