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 / Copy or create a Docum...
Power Automate
Unanswered

Copy or create a Document Library with Folder Structure to new SP site

(0) ShareShare
ReportReport
Posted on by 254

I know it's possible to create a new document library on a site with Power Automate using the send http request to SharePoint action.

 

I would like to copy and existing library and it's folder structure (there are no files in the library) to a new site. Ideally I just want to run the flow on any new site we create where the library is required so it's setup automatically.  I don't have the access in my org to create site templates and are sites are setup automatically.  I currently don't have the site collection access to the site where the existing library is stored so I can't save the library as template and download it.

 

It's likely I will need to add this library to many sites until the site template is updated, can I create/or copy a library with folder structure with PA?

Categories:
I have the same question (0)
  • JonDoesFlow Profile Picture
    1,304 on at

    Hi,

     

    I have been able to do this by doing the following:

     

    Create a new flow with a Manual Trigger.

     

    Then use the Copy Folder step int he SharePoint connector, point to the Destination folder to copy and where it is going to go and then run the flow

     

    Jondoesflow_0-1667469925406.png

    If this has helped please accept my solution, an d thumbs up this reply.  Thanks !

     

    www.jondoesflow.com 

  • Manc_Gurl Profile Picture
    254 on at

    @Jon Thanks I am trying that but it's incredibly slow, it's super fast creating the library and I'm copying about 12 folders that contain sub folders across using the copy folder action but it takes over ten mins to complete.  There are only folders no files so I'm not sure why it's taking so long.  Have you experienced slowness using that action?

     

    I wonder if there's a method to create the folder structure in a http request and if so would that be faster.

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