Hi guys,
I'm using Power Automate to check my calendar for available slots of let's say 30 minutes.
The flow works fine, the output shows all available 30 min slots in my calendar, but what I want it somehow to summarize them all, so i can pass the result to Power Virtual Agent.
For example: "you have 5 available slots of 30 minutes in your calendar"
this is the output
Solved! Go to Solution.
I found the solution to count all items in an array by using the following formula fro compose step
length(variables('SlotNumber'))
this way I get a value of all items in an array which in my cases there are available slots in my calendar
Hi @Radoslavov, it seems you have just use "for each" cycle - what's the problem?
"what I want it somehow to summarize them all, so I can pass the result to Power Virtual Agent.
For example: "you have 5 available slots of 30 minutes in your calendar"
Count all as one total number
I found the solution to count all items in an array by using the following formula fro compose step
length(variables('SlotNumber'))
this way I get a value of all items in an array which in my cases there are available slots in my calendar
Could you please explain where and how did you set the variable 'SlotNumber'?
Sure, I've created an array (called SlotNumber) that stored all available outputs from my calendar
Then in the count all available slots step I'm using the output from the array.
I believe there exists an alternative:
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
User | Count |
---|---|
32 | |
31 | |
24 | |
24 | |
20 |
User | Count |
---|---|
60 | |
57 | |
43 | |
37 | |
28 |