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 / Expression Evaluation ...
Power Automate
Unanswered

Expression Evaluation Failed - Apply to each

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, 

 

I'm having trouble getting an apply to each operation to work correctly. 

Screenshot 2022-12-15 120027.png 

 

These are the steps I need to operation to carry out but I am getting the following error:

Screenshot 2022-12-15 115847.png

 

This same function is carried out in a separate flow and works correctly however for this one it keeps erroring. 

 

TIA

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    You have added the loop on the Coeditors field which might be a person field, not an array.

    Try specifying the listitem values here.

     

    SudeepGhatakNZ_0-1671060934587.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @SudeepGhatakNZ ,

     

    What do you mean by specifying the listiem values? 

    Currently it is: triggerOutouts()?['body/Coeditors'] (CoEditors is a person/group field)

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    I meant use array not object

    SudeepGhatakNZ_0-1671062521246.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'm sorry, I don't think you quite understand. 

    In a separate flow I am performing this step by using the CoEditors object and it is working correctly. For some reason with this flow, it isn't working. I am needing to use the CoEditors object for the flow to work in the correct way (getting values from the CoEditors object and changing them) this will not work with an array and has been proven to work with the CoEditors object 

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Anonymous ,

    Like I said before, you can loop within an array or collection. Apply to each does not accept objects. 

    You said it works on another flow, in that case, please look at or share the input of your Apply to each loop in that flow. I am sure you must be providing it with an array there.

    See this thread, same issue.

    Append Excel Workbook From Lists - Power Platform Community (microsoft.com)

     

     

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
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard