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.
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
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.
|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.|
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
Navigate to the flow
Sign in to the Omnichannel Administration app.
Select Work Streams under Work Distribution Management.
Select the workstream for which you want to update the flow.
Select Flow menu in the command bar, and then select See your flows. Power Automate opens in a new browser window.
Select Solutions in the sitemap, and then select Default Solution from the list.
Select the All button in the menu and select Flow to filter the flows.
Select Entity Record Distribution Flow from the list.
Select the Edit button from the command bar at the top. The flow appears in a new tab.
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.
Update the workstream Id
Select the Omnichannel Work Distribution section.
Select <Entity Record> Distribution. For example, Case Work Distribution.
Select the Work Stream Selection for Routing section.
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.
Select Add an action in the Work Stream Selection for routing entity- (<Entity Record>) section.
Select Conditions under the Actions tab.
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.
Select a condition from the list. For example, is equal to.
Type the rule value in the field. For example, 1.
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.
Select the LiveWorkStreamId from the Name drop-down list.
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.
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.
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.
Select the LiveWorkStreamId from the Name drop-down list.
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.
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.
Select Save to save Entity Record Distribution Flow.
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.
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.