Vorherige

Automate recurring tasks with job queues

  • 3 Min.

Synchronizing and sending status and reminder emails regularly can be a time-consuming process. Job queues enable you to automate these processes, as they can run automatically in the background. This is a standard Business Central feature where you choose actions that Business Central should run on a regular basis. For more info, see the Microsoft guide on how to Use Job Queues to Schedule Tasks.

Expense Management has a set of recurring activities that can be set up for any given job queue:

Task IDDescription
Codeunit 6086305Synchronizing with Continia Online
Codeunit 6086313Sending approval emails
Codeunit 6086314Sending reminder emails
Codeunit 6086353Sending status reports
Codeunit 6225300Automatic posting
  1. Go to Job Queue Entries.

  2. Select New.

  3. On the General FastTab, go to Object Type to Run and select the relevant type, depending on whether you're running a codeunit or a report.

  4. In the field Object ID to Run, enter the relevant codeunit/report (see the table above), and specify the Earliest Start Date/Time.

  5. If you are setting up a report, enable the Report Request Page Options field to set options and filter criteria for the activity.

    Job queue request page

Hinweis

When you've picked or entered a date, the Earliest Start Date/Time field is automatically filled with the default time of day, but you can change this if necessary.

  1. On the Recurrence FastTab, specify the recurrence rate of the job queue by enabling the recurrence toggle for each of the days you want it to run.

  2. Select Home > Set Status to Ready once you've configured the job queue to your needs.

Wichtig

The user who sets the job queue to ready must have the necessary permissions to run the activity. Business Central uses the permissions of the user who started the job queue when running the activity.

Once the job queue is set up and running, you can always see the log for each job queue from the Job Queue Entries page from the Related menu. Choose the Job Queue action and then Log Entries.

Job queue entries log