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

Community site session details

Session Id : cjLgKZZSakAIalPC9KQ2+U
Power Automate - Building Flows
Unanswered

Copy folders, sub folders and files to another site

Like (0) ShareShare
ReportReport
Posted on 14 May 2021 14:37:12 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.

 

I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 21 May 2021 at 12:10:01
    Re: Copy folders, sub folders and files to another site

    still dont work..i stuck

  • Community Power Platform Member Profile Picture
    on 21 May 2021 at 12:02:03
    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 14 May 2021 at 17:52:07
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 954 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 650 Moderator

#3
trice602 Profile Picture

trice602 327 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete