cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Copy files from Google Drive to OneDrive

Hello,

 

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

 

I have the following flow:

 

Capture.PNG

 

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!

Adrian.

2 REPLIES 2
Highlighted
Community Support
Community Support

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

 

Regards,

Michael

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.
Highlighted
New Member

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!

Adrian

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (6,807)