Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Copy folders, sub folders and files to another site

(0) ShareShare
ReportReport
Posted on by

I was trying to copy folders, sub folders and files to another site whenever there is a items created.

I search through templates but there is not available.

 

Appreciate if anyone can help me.

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Copy folders, sub folders and files to another site

    still dont work..i stuck

  • Community Power Platform Member Profile Picture
    on at
    Re: Copy folders, sub folders and files to another site

    Keep getting "Source or Destination likely invalid. Check that the file exists and has an SPListItem ID
    clientRequestId: d49cf3b6-9d30-47c0-b338-1808b999192d
    serviceRequestId: d49cf3b6-9d30-47c0-b338-1808b999192d"

     

    I trying out Get file now.

    https://powerusers.microsoft.com/t5/Building-Flows/Copy-File-action-failing-Source-or-Destination-likely-invalid/td-p/576262

  • zaphod88 Profile Picture
    502 on at
    Re: Copy folders, sub folders and files to another site

    Assuming that there are three stages (document library > subfolders > files), try something like that:

    zaphod88_0-1621014262378.png

    First step: Copy library and list its contents (assuming there are only folders in it, otherwise you have to filter, I guess.)

    zaphod88_1-1621014375671.png

    Copy each subfolder of the library and list its contents.

    zaphod88_3-1621014476333.png

    For each subfolders contents, get file contents and create files in recently copied subfolders.

    Folder Path and File name are dynamic values from 'Create Folder 2' here. 

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1