Example configuration Microsoft PowerApps for Change Skill Scores
Introduction
This example shows you how you can use Microsoft PowerApps to sign in and out of Skill.
Prerequisites
- Make sure your Agents are already configured in the UCC with Skills.
Create PowerApp
-
Navigate to https://web.powerapps.com
-
Select Create and Canvas App from blank
-
Insert Blank vertical
-
Select a data source (if connection is not already created, then select New connection)
-
Enter your UCC site url and Connect
-
Choose SkillsPerAgent and Connect
-
Change Layout to Title, Edit fields, Set Title to Skill, Set Display value to Value
-
(Optional) Remove NextArrow
-
If you want to filter the list to only show the logged in user, then you need to filter the data.
Go to Advanced, change the value of Items to:Filter(SkillsPerAgent, EndsWith(Agent.Value, User().Email))
Note On some clients the ',' needs to be ';'.
-
Select the item, insert two buttons and move them in position
-
Add the following code to the Sign in icon (OnSelect)
Patch(SkillsPerAgent,ThisItem,{Score: 100})
Note On some clients the ',' needs to be ';'.
-
Add the following code to the Sign out icon (OnSelect)
Patch(SkillsPerAgent,ThisItem,{Score: 0})
Note On some clients the ',' needs to be ';'.
-
(Optional) Add to following code to the Sign in icon (Color)
If(Score = 100, RGBA(141, 198, 63, 1), RGBA(166, 166, 166, 1))
-
(Optional) Add to following code to the Sign out icon (Color)
If(Score = 0, RGBA(168, 0, 0, 1), RGBA(166, 166, 166, 1))
Result
When following the steps, you will have the following result:
Optional Items
Use multiple prio levels
Introduction
Beside sign in and sign out, you can also use multiple buttons to set prio levels.
Example
Configure
-
Add 3 buttons
-
Prio 1
-
Text = 100
-
OnSelect:
Patch(SkillsPerAgent,ThisItem,{Score: 100})
-
-
Prio 2
-
Text = 100
-
OnSelect:
Patch(SkillsPerAgent,ThisItem,{Score: 50})
-
-
Sign out
-
Text = Off
-
OnSelect:
Patch(SkillsPerAgent,ThisItem,{Score: 0})
-
-
Use prio sliders
Introduction
You can also use a slider to set prio.
Example
Configure
-
Add Slider to item
-
Add the following code to the Slider (Default)
ThisItem.Score
-
Add the following code to the Slider (OnChange)
Patch(SkillsPerAgent,ThisItem,{Score: Slider2.Value})
Did you find this page helpful?
Yes No
Sorry about that
Why wasn't this helpful? (check all that apply)
Thank you for your feedback.
Want to tell us more?
Email your feedback to our documentation team.
Great!
Thanks for taking the time to give us some feedback.