Hello,
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!
Adrian.
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
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
David_MA
161
Super User 2025 Season 1
Michael E. Gernaey
148
Super User 2025 Season 1
stampcoin
143