Document Dispatch Job Queue
In the Document Dispatch module, a task queue automatically handles tasks such as sending documents, updating their status, cleaning up old attachments, and preparing entries for dispatch. These tasks run in the background at regular intervals, ensuring everything operates smoothly without manual input. This helps keep the document workflow fast, reliable, and well-organized.
| Job Queue | Purpose | Note/Usage Recommendation | Executing Object | Parameter String |
|---|---|---|---|---|
| Document Dispatch – Prepare Await Entries | Processes dispatch entries that have received the status "Pending" through the "Processing via Job Queue" option. The creation of the dispatch document occurs via the task queue and not directly during booking. Updates the dispatch status to "In Preparation". | Standard interval: every minute. Only relevant if "Processing via Job Queue" is activated in the dispatch profile. | 5487170 | PREPARE |
| Document Dispatch – Process Queue Entries | Sends all entries marked as "Created" via their assigned dispatch channels. Collects necessary data and attachments, sends the documents, updates the status to "Sent", and logs the result. | Standard interval: every minute. | 5487170 | QUEUE |
| Document Dispatch – Clear Sent Queue Attachments | Removes attachments from dispatch entries that have already been successfully sent. Deletes BLOB fields from sent entries to reduce storage consumption and maintain system efficiency. | Standard interval: every minute | 5487170 | CLEAR_SENT_QUEUE_ATTACHMENT |
| Document Dispatch – Automatic E-Post Letter Status Update | Automatically checks and updates the status of letters sent via E-Post. Queries the E-Post system for delivery status and updates the entry accordingly (e.g., Sent, Error, Processing). | Standard interval: every minute. Only relevant if E-Post is used as the output type. | 5487170 | UPDATE_LETTER_STATUS |
| Document Dispatch - Unsent Dispatch Entry Crawler Job Queue | Searches your defined tables for documents without dispatch entries and automatically creates unsent dispatch entries. | Standard interval: every 60 minutes. Only relevant if the Unsent Dispatch Entry Crawler has been configured. | 5487170 | USDE |
B2Brouter Queue Processing
B2Brouter entries are processed through the Document Dispatch queue. New entries start with the status Created. If a B2Brouter entry is delayed in sending, the task queue for queue entries processes it.
Before processing, Document Dispatch first sets the entry to Error. This keeps it visible that the entry has been checked in case processing cannot be completed due to missing setup, missing attachments, document creation issues, or validation errors.
If the transmission to B2Brouter is successful, the entry is set to Processing Sending, unless it has already reached the status Sent. The fields B2Brouter ID and B2Brouter Json Response store the feedback information from B2Brouter.
For B2Brouter entries, the actions B2Brouter Information and Update B2Brouter Status are available in the queue. With B2Brouter Information, users can view the stored feedback. With Update B2Brouter Status, the current B2Brouter status can be manually updated when a B2Brouter ID and response data are available. Statuses such as sent, delivered, failed, and rejected can be adopted.
Creating a New Job Queue Entry
Follow these steps to create a new task queue entry:
- Start as a Document Dispatch Administrator in the role center.
- Open the Job Queue Entries via search or by scrolling down to the Entries in the Job Queue section.
- Click on Entries in the Job Queue to open the drop-down menu.
- Click on New.
- The Job Queue Entry Card, where you can make individual configurations, will open.
Various configuration options are available. You can choose whether to use a report or a codeunit as the executing object. Additionally, execution parameters as well as options for report formats and repetitions can be set. The configuration allows tasks to be executed automatically via the task queue to make processes efficient.
Setting Up Document Dispatch Job Queue Entries
Job queues can be individually configured to meet your system requirements, such as setting the start time, end time, and the interval in minutes between executions.
Follow these steps to configure a specific task queue entry:
- Start as a Document Dispatch Administrator in the role center.
- Open the Job Queue Entries via search or by scrolling down to the Entries in the Job Queue section.
- Click on the three dots and select Edit or View to open the task queue entry card.
- To edit the task queue entries, first set them to Set to Waiting.
- In the Repetition section, you can:
- Configure a Start and End Time for when the task queue should begin and end processing dispatch entries.
- Configure the Number of Minutes Between Executions to set the interval at which the task queue runs.
Creating Standard Document Dispatch Job Queue Entries
It is possible to create standard task queue entries for Document Dispatch. These queues define how dispatch tasks are automatically processed in the background to ensure efficient and reliable handling.
Follow these steps to create standard task queue entries:
- Start as a Document Dispatch Administrator in the role center.
- Navigate to the Entries in the Job Queue section by scrolling down.
- Click on Entries in the Job Queue and select the action Create Standard Entries.