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 / Error message on Apply...
Power Automate
Answered

Error message on Apply to Each

(0) ShareShare
ReportReport
Posted on by 6

I keep getting an error message for "Apply to Each". The error says "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/resource Data/responseId']' is of type 'Integer'. The result must be a valid array." Any ideas?

 

Thanks

PowerAutomate1.PNG

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @mikelaz 

     

    First of all, this forum section for discussing desktop flows only, so from next time make sure that you post your question in correct section 🙂

     

    Regarding your question

     

    could you remove the apply to each loop and place its content outside, this happens because apply to each expects an array to iterate not a integer or string etc single values. This is how flow should look like 

    Nived_Nambiar_0-1692896055058.png

     

     

    Hope this helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • mikelaz Profile Picture
    6 on at

    Thanks Nived, I'm totally new to this. I tried to put the contents on the outside and still got an error message.

    Any other suggestions?

    Thanks again!

     

    PowerAutomate2.PNG

  • mikelaz Profile Picture
    6 on at

    Nvm, that worked. Thanks Nived!

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard