Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
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:
  • Nikita Profile Picture
    Microsoft Employee on at
    Re: Apply To Each passes the entire array into OneDrive Create File instead of individual items

    Any news? It's been a week.

  • Nikita Profile Picture
    Microsoft Employee on at
    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

  • v-monli-msft Profile Picture
    on at
    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics