cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft Nikita
Microsoft

Apply To Each passes the entire array into OneDrive Create File instead of individual items

I have an Azure Function that returns an array of strings in the following format:

["http://myurl.com/files/segment1.asf","http://myurl.com/files/segment2.asf","http://myurl.com/files/segment3.asf","http://myurl.com/files/segment4.asf","http://myurl.com/files/segment5.asf","http://myurl.com/files/segment6.asf","http://myurl.com/files/segmentclose.asf"]

 I then try to pass it to One Drive --> Create File via Apply to Each. However, when I examine failed runs, even though the UI correctly shows that it had detected 7 items in the list, each run shows that the body is the full array:

Body

 
And obviously after that I get an error message from OD.
 
How do I return the array in a way that Apply to Each sends items one-by-one instead of all at once?
3 REPLIES 3
Community Support Team
Community Support Team

Re: Apply To Each passes the entire array into OneDrive Create File instead of individual items

Hi Nikita,

 

I think this array of strings are treated as one item instead of a list of items.  So what did you mean about "the UI correctly shows that it had detected 7 items in the list"? Where did you get this information? A screenshot may explain this better.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Microsoft Nikita
Microsoft

Re: Apply To Each passes the entire array into OneDrive Create File instead of individual items


I think this array of strings are treated as one item instead of a list of items.  

You are correct and this is what the title of the post explicitely states.

So what did you mean about "the UI correctly shows that it had detected 7 items in the list"? Where did you get this information? A screenshot may explain this better.

Here's the screenshot: https://1drv.ms/i/s!AnZXhs_jMzqFhsU7t3CjURvGdztqIw

Microsoft Nikita
Microsoft

Re: Apply To Each passes the entire array into OneDrive Create File instead of individual items

Any news? It's been a week.

Helpful resources

Announcements
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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,979)