Hi,
i need help with some approvals, in a form i have a people picker item (you can choose multiple items).
in flow i have an do until an a switch to change the workflow actions, when i try to validate if someone approved the workflow keeps in loop(i think the reason is the apply to each), doesn't change the variable value (the approvals reach to the mails, but when someone approves doesn't continue, at the same time is needed to approve everyone).
is there some way to get only the first to approve and continue the workflow? if there's some way to don't use apply to each and don't add a lot of people picker fields it would be great.
Thanks!
Solved! Go to Solution.
If you add people using the People Picker then they will come in to Flow as an array. That's when you use an Apply to Each Loop to get each array entry and append it to a string variable with a semicolon. Then use that variable for the approvers list as I mentioned in the previous reply.
You can use one approval action to send an approval to multiple people at the same time by adding their emails as a semicolon delimited list. If the Approval type is set to First one to approve then the approval will continue after the first person has a approved the approval. This will avoid the use of an Apply to each loop, other than gathering the emails up into a semicolon delimited list.
As you can see from the following image, I've set the approval type to "First to Approve" but added three email addresses to the approvers list. This can also be done by building a semicolon delimeted list of email addresses as a variable using a Apply to each loop and then submitting the variable where I've typed in names. in my case three approval emails will be sent and when the first person responds the flow will move on.
the problem it's i need to add people using the people picket, but i managed to add it to a text field with ; separating the mails and worked perfect!
Thank you very much!
If you add people using the People Picker then they will come in to Flow as an array. That's when you use an Apply to Each Loop to get each array entry and append it to a string variable with a semicolon. Then use that variable for the approvers list as I mentioned in the previous reply.
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.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
71 | |
22 | |
17 | |
17 | |
13 |
User | Count |
---|---|
125 | |
34 | |
31 | |
28 | |
26 |