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 / How to move files(sub ...
Power Automate
Unanswered

How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

(0) ShareShare
ReportReport
Posted on by 19

Hello Everyone,

How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

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

    Hey Mate, @amarri007 

     

    I do not have data gateway folder but I tried on my cloud ODB -

     

    CFernandes_0-1633949211409.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!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • amarri007 Profile Picture
    19 on at

    Thank you!
    I am able to copy/move files from onedrive (only root directory or specified directory) to local server folder (on premises data gateway), but my requirement is to copy/move all files of onedrive to local server folder (on premises data gateway)

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

    @amarri007 Thank you for clarification. Please find my solution below -

     

    CFernandes_0-1633950080777.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!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • amarri007 Profile Picture
    19 on at

    Thank you  @CFernandes .

    Can flow automatically do this task:
    Example: Root directory and sub folders have the files
    Root directory(name of the directory- amarri)-have 3 files and 3 sub folders (a, b and c folder) each sub-folder have 2 files.



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

    Hey Mate @amarri007 

     

    I assume you want to copy the files with folder structure - If yes, I had created one for SharePoint(you just need to replace the SharePoint actions with OneDrive) see screenshot below- 

     

    CFernandes_0-1633952723735.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!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • amarri007 Profile Picture
    19 on at

    Yes @CFernandes ,
    It seems that this is not working, thank you for your work.

    I found 2 folder actions:
    1) List files in root folder

    2) List files in folder
    But there is a limitation for nested condition up to 8 only.

    I tried my level best only upto 3 nested sub folders of root folder is working.

    Need to work on other options.

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

    @amarri007 Ahh OK.

     

    >>But there is a limitation for nested condition up to 8 only.

    I am not sure about the limitation. Will need to do some research.

     

    Perhaps you might just want to Sync the OneDrive to your local File Share Server. 

     

    https://support.microsoft.com/en-us/office/sync-files-with-onedrive-in-windows-615391c4-2bd3-4aae-a42a-858262e42a49 

     

    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!

  • amarri007 Profile Picture
    19 on at

    I found alternate solution.
    Thank you

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard