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 Platform Community / Forums / Power Automate / Copy files with folder...
Power Automate
Unanswered

Copy files with folder structure from SharePoint library to OneDrive

(0) ShareShare
ReportReport
Posted on by

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,402 Most Valuable Professional on at
    Re: Copy files with folder structure from SharePoint library to OneDrive

    @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
    on at
    Re: Copy files with folder structure from SharePoint library to OneDrive

    @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,402 Most Valuable Professional on at
    Re: Copy files with folder structure from SharePoint library to OneDrive

    @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
    on at
    Re: Copy files with folder structure from SharePoint library to OneDrive

    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,402 Most Valuable Professional on at
    Re: Copy files with folder structure from SharePoint library to OneDrive

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard