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, like synchronizations and approvals, without needing to manually find job codes for each task.

To use the job queue setup page to manage job queues:

  1. Search () for and select Expense Management Setup.

  2. On the action bar, click Setup > Job Queue Setup.

  3. If you want to reset all codeunits to the default settings, on the Job Queue Setup page navigate to the action bar, and click Schedule all.

  4. The fields on the Job Queue Setup page give you access to the default codeunits and allows you to customize their schedule 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. Select Schedule now or select the current value to directly access the Job Queue Entry card for each of the fields in the following table.

  5. After making your adjustments, click Restart to apply the changes and activate the codeunit. The following fields are available:

    CodeunitFieldDescriptionRecommended frequency
    6086305Continia Online
    (CEM Online Synch. Mgt.)
    Automates synchronization with Continia Online to update the setup from Business Central, and to download documents submitted by expense users.Every 30 minutes
    (start after 08:00am, when you have a Credit Card interface).
    6086569Field Dependencies
    (CEM Update Field Dependencies)
    Validates field dependencies to prevent conflicts by running a consistency check.Every 1 - 7 days
    6086313Approval Email
    (CEM Expense Approval Email)
    Sends regular emails to approvers about pending documents for approval. You can schedule this to run daily, only if there are new documents to be approved.Once a day at 14:15pm
    6086314Reminder Email
    (CEM Reminder Email)
    Sends reminder emails to expense users regarding pending documents. Reminders are configurable, based on how many days should pass before sending an email.Once a day at 14:00pm
    6086353Status Report
    (CEM Send Status Report)
    Sends a detailed status report of all documents claimed by a user (posted or open). You can customize the report details on the Expense Management Setup page, under Email.Once a week
    6225300Analyze Expenses
    (CEM PCD Analyze Expenses)
    Identifies recurring expenses and alerts the administrator when they're a good fit for automatic handling via a purchase contract.Set up automatically

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:

  1. Search () for and select Job Queue Entries.
  2. 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.
  3. On the Job Queue Entry Card, under General, go to Object Type to Run and select the relevant type, depending on whether you're running a codeunit or a report.
  4. In Object ID to Run, enter the relevant codeunit/report.
  5. 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.
  6. 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.
  7. 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.

The available job queues