We use Teams Shifts for specifiying who will be on call at weekends, and the shift has a displayName of "On Call".
I can already get a list of shifts between two given dates ok, but how can I check to see if there are NO shifts with a displayName of "On Call"?
Basically I need a condition that says if NONE of the retrieved shifts between the given dates have a displayName of "On Call" then do x
OK, I've answered my own question. If there's a more elegant solution, please advise.
I've initialised a variable which I have called "OnCallCounter", and under my "List all Shifts (Preview)" step, I have inserted an "Apply To Each" using the Shifts Lists, and within this step I have a condition:-
If Shift Display Name is equal to On Call
Increment variable OnCallCounter by 1.
I then use the variable later on:-
If OnCallCounter is equal to 0
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
User | Count |
---|---|
77 | |
20 | |
17 | |
14 | |
13 |
User | Count |
---|---|
134 | |
35 | |
30 | |
29 | |
25 |