cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AgainOpen
Helper I
Helper I

Do Until And delay till Folder not empty

Hi! i need help pls.

I have a flow, that goes from a Form, to adding data to a list, getting approval and creating a folder (using the list ID number as the folder name)

The next step will be a wait till a file is added to that folder and send an email.

I need to find a way to create a delay / do until function that will check for files in the folder till there is something there or till the size of the folder is no longer 0 - but tried a lot of different options with compose and set variables, but nothing is working.

Any suggestions please?

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Microsoft
Microsoft

Hi @AgainOpen 

 

Try this...

 

A variable set to the length of get files value array

 

DamoBird365_0-1637690136613.png

Then a do until the variable is greater than 0

 

DamoBird365_1-1637690167212.png

 

I created a delay of 15 seconds, i.e. check every 15 but you might want to change based on preference.  I then do another get files and update the variable with the length of the get files in the loop.

 

Please consider accepting my answer as a solution if it helps to solve your problem.

Cheers
Damien

Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks

 

View solution in original post

2 REPLIES 2
DamoBird365
Microsoft
Microsoft

Hi @AgainOpen 

 

Try this...

 

A variable set to the length of get files value array

 

DamoBird365_0-1637690136613.png

Then a do until the variable is greater than 0

 

DamoBird365_1-1637690167212.png

 

I created a delay of 15 seconds, i.e. check every 15 but you might want to change based on preference.  I then do another get files and update the variable with the length of the get files in the loop.

 

Please consider accepting my answer as a solution if it helps to solve your problem.

Cheers
Damien

Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks

 

Thank you very much @DamoBird365 ! it worked! much appreciated

Helpful resources

Announcements
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.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,032)