disableAsyncTimeout (مرجع واجهة برمجة تطبيقات العميل)

تعطيل المهلة لمعالج الأحداث. بدلا من ذلك، ينتظر الحدث حتى يتم الوفاء بوعد معالج الحدث. تعرف على المزيد حول مهلات Async 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
منع الإزالة الافتراضية
preventDefaultOnError