web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How do I add the same ...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 24

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

Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @Drdunne 

     

    Check out this flow:

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

     

  • Drdunne Profile Picture
    24 on at

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

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at
    Great!
    Sorry what functions did you want to know the output of?
  • Drdunne Profile Picture
    24 on at

    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?

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at
    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.
  • Drdunne Profile Picture
    24 on at

    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 Profile Picture
    24 on at

    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?

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

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

  • Drdunne Profile Picture
    24 on at

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

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at
    No problem!

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard