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 Automate - Building Flows
Answered

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

I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    32,869 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 647 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 350 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard