cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
_kikilalaaa
Helper V
Helper V

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
efialttes
Super User
Super User

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!



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

 

 

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!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





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

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!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





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

Thank you for helping!

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!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





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

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!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,105)