cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Drdunne
Frequent Visitor

How do I add the same subfolder to multiple folders in Sharepoint?

I have about 200 folders that all need a "Historical" folder. I've figured out how to create a flow for one, but obviously don't want to create 200 flows to create 200 folders once. I've been trying to iterate through the list of folders with the Get Files (Properties) command, but I keep getting errors. Here is what I have so far,

 

Screen Shot 2020-04-29 at 1.01.07 PM.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Jcook
Super User
Super User

Hello @Drdunne 

 

Check out this flow:

2020-04-29_16-50-16.png

 


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





View solution in original post

11 REPLIES 11
Jcook
Super User
Super User

Hello @Drdunne 

 

Check out this flow:

2020-04-29_16-50-16.png

 


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





View solution in original post

Drdunne
Frequent Visitor

That worked! Thank you. Follow-up question, How am I supposed to know or find out what the outputs are for these functions?

Great!
Sorry what functions did you want to know the output of?

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





Drdunne
Frequent Visitor

Any functions that I might use in the future? Are they all defined or listed somewhere? For example I used "Get Files (properties only)" assuming I would get a list of titles, but I was wrong. I had to use "List Folder". How can I double-check, or ensure I'm using the correct function?

So, for example if you wanted to see what the outputs were for Get Files - Properties only, I would add the action than trigger the flow, than look at the outputs.
If the outputs are big, I usually copy paste the outputs and put them into a code editor like VS Code or even notepad++.
It just makes it easier to read.

It all comes down to trial and error.

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





Drdunne
Frequent Visitor

That's what I was looking for. I usually write code in a notebook in blocks and ensure each step gives me the correct results before moving on. I wasn't able to see how to do that in Power Automate/Flow. Thanks!!

Drdunne
Frequent Visitor

Sorry, Where do the outputs "Come out?" If I trigger "Get Files (properties only)" like in my original post, Where do I get the list of properties?

@Drdunne 

Yea no problem,

So the outputs would be in the flow run under body. Its all in JSON.

Pic2 -- 2020-04-29_20-40-24.png

 

The window is not very big, which is why I always put into a code editor.


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





Drdunne
Frequent Visitor

I see! OK. This helps quite a bit. Thank you so much. 

No problem!

If you like any of my posts, please hit the thumbs up 🙂

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





keremtsc
Helper I
Helper I

Hi @Jcook,

 

how can I apply this to a folder inside the Documents folder? So pretty much the subsub folder?

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,336)