In this Use Case, we want to set up a simple logic in our service workflow to route incoming calls outside of working hours to standby duty numbers.
PRECONDITIONS
- You require service owner rights to to create and update and share an excel list on Teams.
- Nimbus Power Automate Connector must be set up and preconditions must be met (Licensing, User Roles).
- A Nimbus service is set up and ready to receive calls.
INC Icon Legend Accordion
Show Icon Legend
💡 = A hint to signal learnings, improvements or useful information in context. | 🔍 = Info points out essential notes or related page in context. |
☝ = Notifies you about fallacies and tricky parts that help avoid problems. | 🤔 = Asks and answers common questions and troubleshooting points. |
❌ = Warns you of actions with irreversible / data-destructive consequence. | ✅ = Intructs you to perform a certain (prerequired) action to complete a related step. |
Create Parameters
In Nimbus, create the following Parameters:
Name |
ID |
Default Value |
---|---|---|
StandbyDutyNumbers | StandbyDutyNumbers | |
TransferToOncallAgent | TransferToOncallAgent | -1 |
Create the Workflow
In the Workflow, we want to route the Closed -node from the Check Opening Hours activity to the on-call Agent.
💡 The workflow overview below demonstrates the path we are interested in during this Use Case. Other paths and activities are excluded to make it easier to understand.
Description |
Activity |
---|---|
1. Add a “Collect Information” activity to the flow. 2. Set Max digits to 1 3. Save the choice to the TransferToOnCallAgent parameter. 💡 Expected results:
|
|
1. Connect the "Input Received" output to a “Wait For Parameter” activity. 2. Select the StandbyDutyNumbers parameter. 3. Set the waiting time to 5 seconds (depending on how much time the Power Automate Flow needs to update the parameter, you can adjust the waiting time accordingly). 💡 Expected results:
|
|
1. Connect the "Updated" output to a "Standby Duty" activity. 2. Set Destination Type to Custom Parameter 3. Set Custom Parameter to StandbyDutyNumbers Set the transfer to the OnCallAgent custom parameter. 4. Define via Max. Attempt Cycles how many times Nimbus should try to call the phone numbers specified in the StandbyDutyNumbers parameter. 5. Specify a prompt text to play to the Agent when answering the call. 6. Specify a Confirmation DTMF for the Agents. 💡 Expected results:
|
Create and Share the Standby Duty Agent List
In the MS Teams Channel of your service, create a list - in our example "Standby Duty Agents" - with at least three data columns:
- Title: Text column, containing the name of your Agent(s)
- OnCall: Yes/No column, controlling whether an Agent is currently oncall.
- Mobile: Text column, containing the well-formatted mobile number of the Agent
- CallingOrder: Choice column, defining the order of the phone numbers to be dialed
💡 Expected results: The Power Automate flow will retrieve all Agents having OnCall checked and it will add the mobile numbers of the Agents to the StandbyDutyNumbers parameter in the order defined in the CallingOrder column.
☝ Please Note: Please note that you can add up to 10 phone numbers to the StandbyDutyNumbers parameter. With the example below, following would be added to the StandbyDutyNumbers parameter: +4134567898;+4156478987;+4145678987
Create the Flow to Fill the StandbyDutyNumbers Parameter
Now it's time to create the Power Automate flow.
Overview of the Power Automate flow
- Visit the Flow landing page: https://make.powerautomate.com/
- Head to "My Flows"
- Click on "+ New Flow" and create a blank "Automated Cloud Flow"
- Give your new flow a speaking name, e.g. "Get Standby Duty Agents"
- In the text box underneath, search for “Nimbus” and choose the "When a task changes state" trigger
- Click the "Create" button.
- Configure the trigger as follows:
Field | What to fill in | |
---|---|---|
Service Item | Select the UPN of the service | |
Task Events | Select Parameter Updated | |
Trigger conditions | On the Settings page of the trigger add the following trigger condition to make sure the flow only gets triggered when the SMSPhoneNumber parameter is updated:
|
Next we will initialize a variable that will store the list of phone numbers.
- Add a Variable "Initialize variable" action to your flow.
- Configure the action as follows:
Field | What to fill in | |
---|---|---|
Name | StandbyDutyNumbers | |
Type | String | |
Value | <leave empty, as is> |
Next we will retrieve the standby duty Agents from our Standby Duty Agents SharePoint list.
- Add a SharePoint "Get Items" action to your flow.
- Configure the action as follows:
Field | What to fill in | |
---|---|---|
Site | Select the SharePoint site containing the Standby Duty Agent list. | |
List Name | Select the Standby Duty Agent list. | |
Filter Query | OnCall ne 'false'
☝We are intentionally using OnCall ne 'false' instead of OnCall eq ‘true’ because of a bug with the Get Items action. |
|
Order By |
CallingOrder
☝We are immediately ordering the retrieved items based on the CallingOrder column of the SharePoint list. |
|
Top Count | 10 |
Next we will add the Mobile numbers from the retrieved items to the StandbyDutyNumbers variable separated by semicolons.
- Add a Variable "Append to string variable" action to your flow.
- Configure the action as follows:
Field | What to fill in / 🌟 = SharePoint dynamic content | |
---|---|---|
Name | StandbyDutyNumbers | |
Value | 🌟Mobile |
Finally we are updating the StandbyDutyNumbers parameter in Nimbus with the list of phone numbers.
- Configure the action as follows:
Field | What to fill in / 🌟 = Nimbus dynamic content | |
---|---|---|
Task ID | 🌟 Task ID | |
Custom Context Parameters |
Click on and add
☝With the above expression we are removing the last semicolon from the end of the string:
will be changed to
|
|
All other fields | <leave empty, as is> |