
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.
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']