Skip to main content

Notifications

Community site session details

Community site session details

Session Id : tqoNOEAPq9qGR7oMZfiHJ2
Power Automate - Building Flows
Unanswered

Copy files from Google Drive to OneDrive

Like (0) ShareShare
ReportReport
Posted on 14 Aug 2017 16:04:15 by 8

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.

  • RaduAdrian Profile Picture
    8 on 15 Aug 2017 at 12:48:45
    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

  • v-micsh-msft Profile Picture
    on 15 Aug 2017 at 08:25:35
    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 161 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 148 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 143

Overall leaderboard
Loading started
Loading complete