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 : 2hCiSrRl2U3H/RvWPU0NBo
Power Automate - Using Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 11 Oct 2021 10:39:31 by 19

Hello Everyone,

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

  • amarri007 Profile Picture
    19 on 18 Oct 2021 at 09:17:39
    Re: How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

    I found alternate solution.
    Thank you

  • CFernandes Profile Picture
    8,303 Most Valuable Professional on 12 Oct 2021 at 12:06:49
    Re: How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

    @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 11 Oct 2021 at 16:02:35
    Re: How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

    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,303 Most Valuable Professional on 11 Oct 2021 at 11:45:32
    Re: How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

    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 11 Oct 2021 at 11:25:24
    Re: How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

    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,303 Most Valuable Professional on 11 Oct 2021 at 11:01:44
    Re: How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

    @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 11 Oct 2021 at 10:52:18
    Re: How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

    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,303 Most Valuable Professional on 11 Oct 2021 at 10:47:21
    Re: How to move files(sub folder files) from onedrive(root directory) to on premises data gateway folder

    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.

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete