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 with folder...
Power Automate
Answered

Copy files with folder structure from SharePoint library to OneDrive

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello folks,

 

Currently, my flow is designed to export all files from a SP library to One Drive without folder structure.

If my library has 5 files within or outside sub-folders, this flow runs to bring all the 5 files to One Drive destination.

Now, because it does not create the sub-folders of SP library in One Drive- it does not copy sub-folders files in their respective sub-folders.

 

I am looking for copying the SP library onto One Drive by retaining the files within their folder structure. Can somebody help tweak this design wherein i get all the files but not within their sub-folders. Thanks

 

GauravG_1-1599991111560.png

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    @Anonymous 

     

    Can you please set the option 'Option Include Nested items Yes" 

     

     

    CFernandes_0-1600001925055.png

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @CFernandes That doesn't help.

    I am already getting files from sub-folders- the flow is working perfectly. I just want a way to create sub-folders and download their files in respective sub-folders on OneDrive. 

     

    By default- sub-folder items are returned as it is true by default

    GauravG_0-1600014964516.png

    Thanks

  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    @Anonymous OK. First and foremost, we spoke on a private message and as I told you I am away from laptop.

     

    To be honest on my mobile device I could not see your screenshot and I know By default- sub-folder items are returned as it is true by default 🙂

     

    I just created a quick Power Automate solution(Not tested it thoroughly), so give the below a try..

     

    CFernandes_0-1600016158912.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @CFernandes 

    This worked perfectly. Thanks

    Please bear with me and help with these queries below to help me understand why your solution worked

    1) Your solution works if in CREATE FILE i use dynamic content "FOLDER PATH". Why doesn't it work when i want it to go to the OneDrive folder "AUTOMATE" as shown below

    2) Also, in ISFOLDER = TRUE condition, it did not matter if i used TRUE from expression, like you did or if i typed TRUE as shown below. Kindly confirm if that's correct.

     

    GauravG_0-1600021297625.png

    Thanks so much @CFernandes 

  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey Mate, I am glad that the problem is resolved. I will answer and clear your doubts tomorrow(Its midnight in India). 

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard