cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hecval
New Member

Power Automate obtain subfolders and files loop

Hello,

I am trying to build a flow in Power Automate that obtains all the folders, subfolders and files properties contained under a specific directory. The information for each object (folder, subfolder or file) is retreived as JSON through a custom connector, so I am using the Parse JSON action to breakdown the answer and list it in excel.

 

The problem is that I am not being able to define a loop that drills down to all the subfolders available in the directory (even if the folder structure changes over time), so for the moment I am just defining manually the amount of subfolders "levels" that I want to include in my extract.

 

In the image below you will get the picture of what my current flow looks like, and the red arrow that indicates where the loop should be applied.

 

Any idea about how I can get this loop properly done? I tried setting temporary variables to define a Do Until action, but it didn't work so far.

 

Thanks!

 

Untitled3 - Copy.png

1 REPLY 1
acerNZ
Helper III
Helper III

Is this working? I am looking for similar flow to extract the files in the sub folders 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,025)