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
MVP

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
MVP

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





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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,030)