Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
There's more...
To force the process through the batch framework, we will use the execution modes ReliableAsynchronous and ScheduledBatch.
Both of these methods submit jobs to the batch server for execution, where the ReliableAsynchronous method auto-deletes the jobs after execution.
The jobs do not execute immediately, but within a minute of submission; the batch server polls for waiting jobs every minute. We should use this method to perform asynchronous or scheduled jobs that require heavy processing.
Programmatically speaking, we wouldn't normally use the ScheduledBatch mode. This would be set based on the user choosing to run it as a background task.
To submit the task as ReliableAsynchronous, simply change the code that constructs the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access