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

Create multiple Sharepoint root folders using a Sharepoint List

Hi, I want to create multiple root folders based on an existing List. The folder name should be dynamically taken from one Column in the list.

 

SunShenoy_0-1670247392208.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
grantjenkins
Community Champion
Community Champion

You should be able to use Get items to retrieve your list items, then in an Apply to each use Create folder using the output from your column. See example below:

grantjenkins_0-1670252093223.png

 

Note that the expression I used is below. You would just need to add your actual field name.

items('Apply_to_each')?['Field Name']


----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

View solution in original post

3 REPLIES 3
grantjenkins
Community Champion
Community Champion

You should be able to use Get items to retrieve your list items, then in an Apply to each use Create folder using the output from your column. See example below:

grantjenkins_0-1670252093223.png

 

Note that the expression I used is below. You would just need to add your actual field name.

items('Apply_to_each')?['Field Name']


----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.
SunShenoy
Helper I
Helper I

Thanks. It worked. 😀

 

Do you know what will be the behaviour if a folder already exists. Will it skip or fail the flow? I cannot find the option to skip in the create folder.

From my understanding it won't error and won't try to recreate the folder if it already exists. I just did a couple of tests and seems to be the case.



----------------------------------------------------------------------

If I've answered your question, please mark the post as Solved.

If you like my response, please consider giving it a Thumbs Up.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,717)