BeyondERP.Newsletter
Menu

Setup step on the Work item queue assignment rules page · Organization administration

Route documents to queues with rules

Send each document to the right queue by its conditions, such as the amount.

See how to set it up Back to Organization administration

Used by
Information technology manager
Business process
Administer system features
Menu item
WorkFlowWorkItemQueueExpressionSetUp
Main table
WorkflowWorkItemQueue
Data entity
WorkflowWorkItemQueueEntity
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements. Some of it is Dynamics AX 2012 documentation, an earlier version.
Tests
A ready-to-run test, “Documents split by amount”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA setup page where you create rules with conditions that decide which work item queue a document is sent to.
What you do hereUse this page to route documents to the right queue automatically, with the rules checked in the order you set.
ExampleFor example, a USD 15,000 purchase requisition for Adventure Works matches a rule for amounts over USD 10,000 and goes to the Adventure Works High Cost Queue.
Work item queue assignment rules page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processAdminister system features
Menu pathOrganization administration › Workflow › Work item queue assignment rules
Set up firstWork item queues Microsoft Learn
Used next byOrganization workflows (Conditional work item queues) Microsoft Learn
Related pagesWork item queue groups Microsoft Learn
In this process Set up work item queues · Follow documents in workflow history
End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

Setup steps on this page

Route documents to queues with rules

Send each document to the right queue by its conditions, such as the amount.

Steps from Microsoft

  1. Go to Organization administration > Workflow > Work item queue assignment rules.
  2. Select a type of document from the Document list.
  3. Select New to create a rule.
  4. Enter a Name and Description, select the Queue name, and then select Create rule.
  5. Select the rule, expand the Conditions tab, and select Add condition.
  6. Enter the conditions for the rule.
  7. Use Move up or Move down to set when the rule is evaluated.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExampleTable column
DocumentThe document type that the rule applies to.Microsoft Learn
Queue nameThe queue that documents meeting the rule's conditions are sent to.Microsoft Learn Adventure Works High Cost QueueName

Common errors and fixes

MessageWhat to do
A document goes to the wrong queueRules are checked in order: use Move up or Move down so the more specific rule is checked first. Microsoft Learn

Test checklist

  1. Create a rule for amounts over USD 10,000 that sends documents to the high-cost queue.
  2. Assign the workflow task with Queue type Conditional work item queues.
  3. Submit a USD 15,000 document and a USD 5,000 document.
  4. Check only the first lands in the high-cost queue.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Route documents to queues with rulesUse assignment rules only for workflows that offer Conditional work item queues, and order the rules from most to least specificLearn says the conditional queue option is used for only a few workflows, such as Case management; rules are checked in the order you set.Does a task go to a fixed queue or one chosen by rules?Putting a general rule above a specific one, so every document matches the general rule first.Test: Documents split by amount

Feature management and licence

Licence or add-inOn this system the page opens for Information technology manager. IT administrators maintain the rules. No Feature management feature needs to be turned on for this page.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyShared: the same records are used by every legal entity. Microsoft data model
Can it be undoneReversible: Rules can be reordered or changed; only documents routed afterwards follow the change.
If you change it laterRules are checked in order, so moving a rule up or down changes which queue a document goes to. Microsoft Learn
Technical architect

6Technical

Menu itemWorkFlowWorkItemQueueExpressionSetUp Checked in Dynamics 365
FormWorkFlowWorkItemQueueExpressionSetUp Checked in Dynamics 365
TableWorkflowWorkItemQueueShown as “Workflow work item queue” in Record infoKey field: Name, WorkitemType, WorkitemTypeFriendlyNameChecked in Dynamics 365
Data entitiesWorkflowWorkItemQueueEntityWorkflow work item queue Microsoft data model WorkflowWorkItemQueueAssignmentRuleEntityWorkflow work item queue assignment rule (the rules and their conditions)
Who can open it

1 security role. Select a role to see its duties and privileges.

  • RoleInformation technology managerSysServerITManager
    • DutyMaintain workflow and alerts settingsWorkflowAlertsSettingsMaintain
      • PrivilegeMaintain work item queuesWorkflowWorkItemQueueAdmin
Checked in Dynamics 365
Roles to set it up and use itTo set it up or change itInformation technology manager SysServerITManagerGive people one of these roles. On this system, 1 role can open this page.Checked in Dynamics 365
Actions on the pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=WorkFlowWorkItemQueueExpressionSetUp
Integrate withWorkflowWorkItemQueueEntity data entity Microsoft data model
Data migrationWorkflowWorkItemQueueAssignmentRuleEntity (Workflow work item queue assignment rule): shared by all companies, in Microsoft's default template 022 - Workflow.Load order: Microsoft's default template 022 - Workflow loads the assignment rules at level 22, sequence 80, after the work item queues (sequence 60).Load first: Workflow work item queueChecked in Dynamics 365
Table definitionWorkflowWorkItemQueue columns and relations Microsoft data model
Everyone

8Sources

To cite this step: OA-WF-630, Route documents to queues with rules. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/OA-WF-630