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 :
Power Automate - Building Flows
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

 

 

I have the same question (0)
  • Pstork1 Profile Picture
    68,295 Most Valuable Professional on at
    Re: Copy files from your windows PC/Network Drive to SharePoint Library Files Including Nested Folders Structure using Power Automate

    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
    Re: Copy files from your windows PC/Network Drive to SharePoint Library Files Including Nested Folders Structure using Power Automate

    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
    Re: Copy files from your windows PC/Network Drive to SharePoint Library Files Including Nested Folders Structure using Power Automate

    here is what I have developed so far

    daruffin_0-1704810453514.png

     

  • GD2024Orlando Profile Picture
    4 on at
    Re: Copy files from your windows PC/Network Drive to SharePoint Library Files Including Nested Folders Structure using Power Automate

    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

Responsible AI policies

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard