web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Apply To Each passes t...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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?
Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    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

  • Nikita Profile Picture
    Microsoft Employee on at

    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

  • Nikita Profile Picture
    Microsoft Employee on at

    Any news? It's been a week.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 376

#2
Valantis Profile Picture

Valantis 361

#3
David_MA Profile Picture

David_MA 294 Super User 2026 Season 1

Last 30 days Overall leaderboard