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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard