cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bhavpreet
Level: Powered On

Performing same action from different approval conditions

Hello,

 

I am working on a flow like the one below. If the first approval gets rejected it goes for second approval to different group of users. If they approve, the flow needs to perform the same set of actions as it would have done with the first approval. 

 

Easiest way to implement is to get the first approval. If approved, perform the actions, else call the second approval. If it gets approved, duplicate the actions that would have performed in first approval in second approval. I don't want to duplicate the actions in the flow approved conditions but may be some how call them on second approval. What will be the best way to do so?

   Flow.PNG

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Performing same action from different approval conditions

Move the actions to be performed if either of the approvals are approved to the bottom of your flow.

In the Rejection arm of your condition on the 2nd approval, add a Terminate function with Success at the end of your rejection actions, so that the approval actions do not run.

 

Annotation 2020-01-09 082921.png

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Performing same action from different approval conditions

Move the actions to be performed if either of the approvals are approved to the bottom of your flow.

In the Rejection arm of your condition on the 2nd approval, add a Terminate function with Success at the end of your rejection actions, so that the approval actions do not run.

 

Annotation 2020-01-09 082921.png

View solution in original post

Community Support Team
Community Support Team

Re: Performing same action from different approval conditions

Hi @Bhavpreet,

 

You can initialize an integer variable named Approval as a flag, set its default value to "0". If two of the approvals responded approved, set the variable to "1". After all, if the Approval is a "1", create a document or send reject email, for example:

Annotation 2020-01-09 111350.png

 

Annotation 2020-01-09 111408.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,860)