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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ExpressionEvaluationFa...
Power Automate
Unanswered

ExpressionEvaluationFailed. The execution of template action 'For_each' failed

(0) ShareShare
ReportReport
Posted on by 5

I get the following error when I test a flow I've created:

 

ExpressionEvaluationFailed. The execution of template action 'For_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['incidentUpdates']' is of type 'Null'. The result must be a valid array.

 

 

 

Does anyone have any tips on what I'm doing wrong? Thanks so much!

I am trying to implement A recurring playbook that triggers at knock-off hour every day (Mon-Friday), The playbook collects information about incident id , name , description , URL. All the incidents assigned to the analyst, projected on a HTML table and send it to one of my colleagues.

 

Screenshot (324).png

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,175 Most Valuable Professional on at
    Re: ExpressionEvaluationFailed. The execution of template action 'For_each' failed

    Hi @Gift,

     

    I had a look at the documentation to see what type of fields are returned in the response:

    https://learn.microsoft.com/en-gb/connectors/azuresentinel/#incidenteventnotification

     

    Based on that I would say to try and use an array like the updatedFields instead:

    triggerBody()?['incidentUpdates']['updatedFields']

     

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard