Setting up job queues
Set up and manage job queues in Expense Management so you can save time by automating tasks and processes such as synchronizations, approvals, and reminders, as well as running tasks automatically in the background, while still allowing for manual synchronization when needed.
On the Job Queue Entry Card of the Job Queue Setup page you can create and manage entries, manage job queues, and adjust schedules. For general information on working with job queues in Business Central, refer to Use job queues to schedule tasks (Microsoft's article).
Use the Job Queue Setup page
To simplify the process of setting up and managing recurring tasks, you can use Expense Management's Job Queue Setup page. This page gives administrators direct access to the default codeunits to quickly create and manage job entries, such as synchronizations and approvals, without needing to manually find job codes for each task.
To use the Job Queue Setup page to manage job queues:
Search () for and select Setup (Continia Expense Management).
On the action bar, click Job Queue Setup.
If you want to reset all codeunits to the default settings, on the action bar, click Schedule all.
The fields on the Job Queue Setup page give you access to the default codeunits and allow you to customize their schedules as needed. You can add a new job queue and modify the settings of running job queues such as the task’s start time, frequency, or recurrence. Click Schedule now in any of the following fields, or select the current value, to directly access the Job Queue Entry Card for each of the fields in the following table.
After making your adjustments, click Restart to apply the changes and activate the codeunit. The following fields are available:
Set up job queues in Expense Management
As indicated above, you can use job queues to schedule and run many different tasks and processes. The setup procedure is always the same – only the codeunits/reports are different.
To set up a job queue:
- Search () for and select Job Queue Entries.
- On the action bar, click New to open the Job Queue Entry Card. Alternatively, go to the Expense Management Setup page, click Setup > Job Queue Setup, then select a field to open the Job Queue Entry Card.
- On the Job Queue Entry Card, under General > Object Type to Run, click the dropdown menu and select the relevant type (Report or Codeuit).
- In Object ID to Run, click the menu (...) click the relevant codeunit/report, then click OK.
- In Earliest Start Date/Time, specify the earliest date and time to start running the job queue. When you've picked or entered a date, the Earliest Start Date/Time field is auto filled with the default time of day, but you can change this if necessary.
- Under Recurrence, specify the recurrence rate of the job queue (if any) by enabling the recurrence toggle for each of the days you want it to run. Fill in the remaining relevant fields under Recurrence.
- On the action bar, click Set Status to Ready to start the job queue.
Bemærk
Job queues sometimes fail, for example due to interrupted communication with an essential external resource that's become unresponsive, eventually resulting in an error status. To avoid this, we recommend you fill in the fields Maximum No. of Attempts to Run and Rerun Delay (sec.), which are located under General. You may have to select Show more for these fields to become visible.