Create multiple workstreams for entity records routing

Omnichannel for Customer Service is a paid add-on to Dynamics 365 Customer Service apps that use the Unified Interface. It is available only when you purchase a subscription to Chat for Dynamics 365 Customer Service or Dynamics 365 for Digital Messaging. For information about pricing, see the Customer Service page.

Overview

You can setup multiple workstreams for same entity records if you want to distribute the entity records using different workstreams based on certain conditions.

For example, you want high priority cases to be pushed to agents and demand more capacity than low priority cases, which can be picked by agents. You can achieve it by configuring multiple workstreams.

This walkthrough demonstrates how to set up two workstreams, one each for high priority cases and low priority cases and to distribute the cases appropriately.

In this section

Step 1: Create workstream

Step 2: Update Entity Record Distribution Flow

Step 1: Create workstream

Create entity records workstream to define how the records will be distributed. In this walkthrough, let us create two workstreams - High Priority Cases and Low Priority Cases.

High priority cases workstream is set up to distribute the cases using automatic push, and the capacity required in 60 units.

Low priority cases workstream is set up to distribute the cases for manual pick up, and capacity required is 30 units.

To learn more, see Create workstream for entity record routing.

Step 2: Update entity records distribution flow

If you create or edit an entity record workstream, you must update Entity records Distribution Flow. The Omnichannel Administration app automatically creates this flow out-of-the-box for distributing entity records.

Entity records Distribution Flow contains the following components.

Component Modification recommendation
When the record is created Do not modify.
Initialization Do not modify.
Omnichannel Work Distribution You can see the list of entity records for which work streams were created in the Omnichannel Administration app.
<Entity Record> Select to view the components under the Entity record.
Work Stream Initialization - <Entity Record> Do not modify.
Entity record - <Entity Record> Do not modify.
Work Stream Selection for Routing (<Entity Record> ) Update the condition and workstreams Id.
Invoke Omnichannel Do not modify.

Warning

We recommend you update only the Work Stream Selection for Routing component in Entity Records Distribution Flow. If you update any other component step in the flow, the entity routing might fail.

Update entity records work distribution flow

  1. Sign in to the Omnichannel Administration app.

  2. Select Work Streams under Work Distribution Management.

  3. Select the workstream for which you want to update the flow.

  4. Select Flow menu in the command bar, and then select See your flows. Power Automate opens in a new browser window.

  5. Select Solutions in the sitemap, and then select Default Solution from the list.

    Select default solution

  6. Select the All button in the menu and select Flow to filter the flows.

    Select the All button and filter flow

  7. Select Entity Record Distribution Flow from the list.

    Select Cases Work Distribution Flow

  8. Select the Edit button from the command bar at the top. The flow appears in a new tab.

Authenticate

  1. Select the flow component that shows the warning icon. Select an existing connection to resolve the warning. The flow component uses the current user credentials and resolves the warning.

    Resolve flow warning

Update the workstream Id

  1. Select the Omnichannel Work Distribution section.

  2. Select <Entity Record> Distribution. For example, Case Work Distribution.

  3. Select the Work Stream Selection for Routing section.

    Select workstream

  4. Remove the Select Default Work Stream - <Entity Record> section by selecting the ellipses, and then by selecting Delete.

    For example, Select Default Work Stream - Case

    Remove the default workstream so you can update the workstream with the one you created earlier.

  5. Select Add an action in the Work Stream Selection for routing entity- (<Entity Record>) section.

  6. Select Conditions under the Actions tab.

  7. Select the Choose a value box to add a rule. A flyout control appears. Type in the search box to look up the attributes of the Case record that is being routed. For example, Priority. The rule appears in the list, and when you select the rule, it is added to the field.

    Add rule

  8. Select a condition from the list. For example, is equal to.

  9. Type the rule value in the field. For example, 1.

    Set condition and value

  10. Select Add an action button under the If yes section. The Choose an action component appears. Now, type Set Variable in the Search connectors and actions box and the action appears in the list. Select it and the Set Variable action appears.

    Add Set Variable Action

  11. Select the LiveWorkStreamId from the Name drop-down list.

  12. Select the Value field search box to add a variable. A flyout control appears. Type the name of the workstream you created in the search box. For example, High Priority Cases is one of the case workstream that you created to route high priority cases. The value appears in the list, and when you select the value, it is added to the field.

    Note

    If you update the name of the workstream in Omnichannel Administration app, then you must perform step 21. Otherwise, the cases won't be automatically distributed to the agents.

    Set the If yes variable value

  13. Select Add an action button under the If no section. The Choose an action component appears. Now, type Set Variable in the Search connectors and actions box and the action appears in the list. Select it and the Set Variable action appears.

  14. Select the LiveWorkStreamId from the Name drop-down list.

  15. Select the Value field search box to add a variable. A flyout control appears. Type the name of the workstream you created in the search box. For example, Low Priority Cases is one of the case workstream that you created to route low priority cases. The value appears in the list, and when you select the value, it is added to the field.

    Note

    • If you update the name of the workstream in Omnichannel Administration app, then you must perform step 24. Otherwise, the cases won't be automatically distributed to the agents.

    • Adding multiple workstreams in the conditions are optional. If your business process requires multiple workstream conditions, you can create it.

    Set the If no variable value

  16. Select Save to save Entity Record Distribution Flow.

    Workstream selection

Now, you've defined Entity Record Distribution Flow such that any case whose priority is 1 (high) is distributed using high priority workstream, and other cases will be distributed using low priority workstream. Similarly, you can extend the conditions such that the Flow supports your business scenario requirements.

Important

Whenever you want to update the entity record workstream ensure that Entity Records Distribution Flow is closed. Assume, you've made certain updates to the Flow. Now, while the Flow is still in the open in the browser, you go to Omnichannel Administration app and update the workstream. In this case, after you save the workstream, the Flow will be reset to its earlier state and you will loose the changes you did to the Flow.

Troubleshoot

See also

Entity records routing

Understand and create workstreams

Create workstreams for entity record routing