Skip to main content

Notifications

Community site session details

Community site session details

Session Id : E6aROKoBiQOJUklCFt7dHy
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started