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

Repeat previous steps

Hi,

 

I'm using flow for a little while and getting well with it.

But now, trying to build and aprroval flow I face something I don't know how to deal with.

What I need to is:

> Send an e-mail to someone1 to put a file in Sharepoint

> When a file in created in the desired folder start an approval flow to someone2

> If someone2 approves the file, ok; if rejected send a new mail to someone1 asking to upload a new file

> Get back to "> When a file in created in the desired folder start an approval flow to someone2"

> If someone2 approves the file, ok; if rejected send a new mail to someone1 asking to upload a new file

And the do this forever until someone2 approves the file.

 

A print of the flow to make it more visual:

Captura.PNG

 

I'm stuck in the red line.

2 REPLIES 2
Community Support Team
Community Support Team

Re: Repeat previous steps

Hi @dkiill,

 

Could you please share a bit more about the "Update row" action within your flow?

Further, could you please share a full screenshot of your flow's configuration?

 

I have made a test on my side and please take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a "Send an email" action.
  • Add a "Do Until" action, click "Edit in advanced mode", type the following formula:
  • @equals(body('Start_an_approval')?['response'], 'Approve')
    Within "Do Until" action, add a "When a file is created in a folder" trigger, specify Site Address and Folder Id. 

         Add a "Start an approval" action, then add a Condition, left input box set to Response dynamic content of "Start an approval" action, right input box set to Approve, middle drop down, choose is equal to.

 

       Within "If/yes" branch of Condition, add a "Send an email 2" action to notify the user that the uploaded file has been approved. Within "If/no" branch of Condition, add a "Send an email 3" action to notify the user that the uploaded file has been rejected and please upload a new file.

 

Image reference:20.JPG

 

21.JPG

The flow works successfully as below:22.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dkiill
Level: Powered On

Re: Repeat previous steps

It works, Thanks.

 

The problem was that I don't knew i could put in the do until a action that will happen after it.

But doing it in advanced options works fine.

 

Really thankfull.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 137 members 3,876 guests
Please welcome our newest community members: