Job Queue Entry Pattern
In Microsoft Dynamics NAV, processes can be automated using the Job Queue. The Job Queue asynchronously processes requests as a background service using an NAV Application Service.
An explanation of the implementation of Job Queue Entry Pattern is available at https://www.youtube.com/watch?v=UA2Pq7fv-Dk&list=PLhZ3P-LY7CqmVszuvtJLujFyHpsVN0U_w&index=15.
Most processes can be wrapped in a Job Queue process by implementing Job Queue Entry Pattern.
Job Queue can also execute a report. This pattern describes the usage of Codeunits in Job Queue.
Technical description
Job Queue Pattern requires us to wrap the process into a Codeunit that takes a Job Queue Entry as a parameter. This Codeunit then follows a number of steps.
Preprocessing
During this step, we can test if the Job Queue Entry table contains the information that we need.
Getting records
The Job Queue Entry contains a Record ID that allows us to read a record from a specific...