Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Copy files from Google Drive to OneDrive



I know this has been somewhat posted before but I couldn't find a solution.


I have the following flow:




It works fine to copy files over to OneDrive, the part where I run into an issue is when it comes to a folder. I have the "If no" branch of the condition for this but not sure what to do.


I thought of passing on the parameter to the "Apply to each" function, thus creating a recursive function but I believe that is not an option yet.

I thought of creating a "global" variable that keeps on growing till there are no more folders and add that to a "Do until" function before Apply Each, yet I don't know how to do that.

I thought about creating an archive if it finds a folder but I don't know how to do that either or if it's even possible.


Do you happen to have any advice or ideas ?


Thank you in advance!


Community Support Team
Community Support Team

Re: Copy files from Google Drive to OneDrive

Hi @RaduAdrian,


Yes, you are right that Apply to each is not available for nested scenarios.

There is a blog talking about how to build nested flows, check and see if it would work for your scenario:

How to build nested flows with the HTTP action




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Powered On

Re: Copy files from Google Drive to OneDrive

Hi @v-micsh-msft,


First, thank you so much for replying!


Secondly, I've tried what you suggested to that when I reach a folder I pass it on with the HTTP POST method and it seems to work fine on that but what seems really strange is that in the flow where I'm suppose to process that received folder, the "List files in folder" action throws back an error even if the input is correct.


Take a look at the second flow run if I select the "Software" folder from within my Google Drive manually using the dropdown menu that shows up:



And if I use the received information from the parent flow, even if it's identical input, it throws an error:


Am I missing something ? If I don't select it from the menu does it lose the Google sign on ?


Hope you can shed some light on this one.


Thank you!


Helpful resources


Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.


Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 262 members 3,232 guests
Please welcome our newest community members: