Alert the AP manager when invoices sit in the Coding Queue too long
An hourly check that emails the AP manager when any invoice has waited in the Coding Queue longer than two days — a Coding-Queue Age trigger and a Send E-mail action — so uncoded documents can't quietly pile up.
Before you begin
- A Workflow Access email template for the alert (see Customize notification message templates)
When you're done, an invoice that has waited in the Coding Queue for more than two days sends the AP manager an email, once a day per invoice, until someone codes it.
- Trigger
- Coding-Queue Age › Age of Document-Type Content in the Coding QueueAge: 2 Days · Process Interval: Every Hour · Reprocess Matching Records After: 1 Days
- Action
- Send E-mailMessage Template: "Invoice waiting to be coded" (Email, Workflow Access)
- Rule
- "Coding Queue item older than 2 days → email AP manager", enabled
The Coding Queue is where captured documents wait for a person to fill in their fields. Nothing downstream — approval, routing, notifications — happens until they're committed, which is exactly why a stalled queue is invisible until someone looks.
Build the trigger
Go to Administration > Catalogs & Document Types, pick the Catalog and the invoice Document Type, click the Workflow tile, then Triggers > New Trigger.
Type:
Coding-Queue AgeandAge of Document-Type Content in the Coding Queue. Trigger Name:Invoice in Coding Queue over 2 days.
Set the age to
2Days. (The age controls on queue-age triggers follow the same pattern as the other age types: a number, a unit, and the schedule below.)
Process Interval:
Every Hour. Process Start:On First Interval. Reprocess Matching Records After:1Days.
Click Save.
This sub-type sees Coding Queue items that are already assigned to this document type. Items that arrived with no type yet aren't covered; for those, build the same trigger at the global scope under Administration > Workflow with sub-type Age of All Content in the Coding Queue.
Build the action
Click Actions > New Action. Type:
Send E-mail. Action Name:Email AP manager — item waiting to be coded.
Pick the template under Message Template: (its To is the AP manager; its body names the document with insert codes). Content Attachment:
Do Not Attach. Save.
Wire the rule
Click Rules > New Rule. Rule Name:
Coding Queue item older than 2 days → email AP manager.
Add Trigger:
Invoice in Coding Queue over 2 days. Add Action:Email AP manager — item waiting to be coded. Apply.
Test it
Capture one invoice and leave it uncoded in the Coding Queue. To test without waiting two days, temporarily set the age to
5Minutesand Process Interval toEvery 5 Minutes, then restore.
After the interval, check the AP manager's inbox.
What you should see: one email naming the waiting document. It should not repeat within the reprocess window. Once the item is coded and committed, it stops matching.
Variations
| Want this instead | Change this |
|---|---|
| Alert when the queue holds more than N items regardless of age | Trigger Queue Items › Coding-Queue Items in this Document Type, Minimum Items in the Coding Queue: |
| Same alarm for the Approval or Work queues | Trigger types Approval Processes › Age of Stage (recipe) or Work-Queue Age › Age of Document-Type Content in the Work Queue |
| Alert when documents stop arriving at all | Alert when the scanner or hot folder goes quiet |
| Whole system, not one type | Global scope: Administration > Workflow, sub-type Age of All Content in the Coding Queue |
| Fill in fields automatically instead of waiting for a person | Coding Queue - Perform Field Lookup and Coding Queue - Update Field actions on a Coding-Queue Arrival trigger |
