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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Copy files from your w...
Power Automate
Unanswered

Copy files from your windows PC/Network Drive to SharePoint Library Files Including Nested Folders Structure using Power Automate

(0) ShareShare
ReportReport
Posted on by 4

I'am new to power app and need a solution which will copy files from a network drive which has multiple one main folder with 20 subfolder with files. 

I need to loop thru the folders and copy then over to a SharePoint folder located in the document directory. 

The filed will be loaded ever check every few months. below is what I am thinking I need, but cannot developed the loop. I need a example of. I already have my gateway connection created and working

 

1. When a file is created or Modified'

2. Use the "List files in folder" action for the main folder to get a list of files and subfolders.
Apply to Each:

3. Add an "Apply to Each" loop to iterate through each file or subfolder obtained in the previous step.

4. Create file on Shared point

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,127 Most Valuable Professional on at

    Three suggestions

    1) Make the process of listing the files in a folder and copying them a child flow. That way you can call the child flow when you load the root folder, but then have the child flow call itself to do the next level. That lets you implement the copy recursively so you don't need to know how many subfolders you have.

    2) Be aware that to do this you will need an on-premises gateway and a Premium license.

    3) Make use of parallelism in the Apply to Each loop and avoid the use of Variables to improve performance.

  • daruffin Profile Picture
    4 on at

    I have a on-premises gateway already, but I need some type of example of the Each loop. I have search the for one example with no luck

  • daruffin Profile Picture
    4 on at

    here is what I have developed so far

    daruffin_0-1704810453514.png

     

  • GD2024Orlando Profile Picture
    4 on at

    Did this work...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard