cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Approval - Everyone must respond

Hi all.

I have a flow with start and wait for approval- Everyone must respond.

if everyone approved, an email will be sent to user, saying that the request has been sent.

 

How do i do that? because now i have 3 approvers. when 3 of them approved, user received 3 emails instead of 1. 

9 REPLIES 9
Highlighted
Dual Super User
Dual Super User

Re: Approval - Everyone must respond

Hi!

Can you share a screenshot from your flow design?

Take care and stay healthy!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Helper IV
Helper IV

Re: Approval - Everyone must respond

hi @efialttes ,

here is my flow:

1. get approvers email and store it in 1 variable. Send approval

Get approvers list name from sp list and store it in 1 variableGet approvers list name from sp list and store it in 1 variable

 

2. If all approvers approve the request. Approval 2.PNG

 

3. Email will be sent once to user and admin to inform it has been approved.

Approval 3.PNG

 

 
Highlighted
Super User
Super User

Re: Approval - Everyone must respond

Hello @_kikilalaaa 

 

You will want to remove the apply to each loop.

 

You can use the condition like you are using but instead of Outcome use Responses.

So for example. If you have 3 approvers and 2 approve and 1 rejects, the Responses array will look like:

['Approve', 'Approve', 'Reject']

So you can still use your condition of does not contain Reject 

 

Responses = an array of all responses

Outcome = single response





Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up ?


Proud to be a Flownaut!





Highlighted
Helper IV
Helper IV

Re: Approval - Everyone must respond

hi @Jcook ,

even when i use response, it still send  the email 3 times because there are 3 approvers. this is weird because response should summarize all right

Highlighted
Super User
Super User

Re: Approval - Everyone must respond

Hi @_kikilalaaa
Yes, but if the send email action is inside a loop with the input as Responses, it will send a email out for each Response.

As Response is an array of each outcome. It will send the email 3 times.

Share a picture of your flow, and I will help you out in the morning




Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up ?


Proud to be a Flownaut!





Highlighted
Helper IV
Helper IV

Re: Approval - Everyone must respond

HI @Jcook , my flow is the same as i sent before. i just changed "outcomes" to "responses".

Thank you for helping!

Highlighted
Super User
Super User

Re: Approval - Everyone must respond

Hello @_kikilalaaa 

 

Please take a look at my example:

ApprovalNotinLoop-Pic1.png

 

Notice how the Send an email action is not inside a loop. The Approval responses do not need to be in a loop as well.





Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up ?


Proud to be a Flownaut!





Highlighted
Helper IV
Helper IV

Re: Approval - Everyone must respond

Hi, how not to make it inside a loop? Because i have 3 emails, so it definitely will check all 3 emails together. That's why loops happened. But i already put all email in oe variable
Highlighted
Super User
Super User

Re: Approval - Everyone must respond

Hello @_kikilalaaa

Did you get a chance to look at the picture I uploaded above, my example is not in a loop. If you want to send an email to all approvers at once than add the array variable you have with all the emails in the to section.




Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up ?


Proud to be a Flownaut!





Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,309)