I checked the previous posts but I couldnt see any solution.
I have setup an ms teams alert transport, I click on the test button and it shows “transport to ms teams ok” but Im not getting any message on the channel. I see the below error on teams logs :
ExpressionEvaluationFailed. The execution of template action ‘Send_each_adaptive_card’ failed: the result of the evaluation of ‘foreach’ expression ‘@triggerOutputs()?[‘body’]?[‘attachments’]’ is of type ‘Null’. The result must be a valid array.
I tested directly a payload on the cli with the below command and i can see the message on teams
curl -H “Content-Type: application/json” -d “@/root/payload.json” “https://mywebhooklink”
It took me a bit to get my webhooks working. My webhook tested good however my alerts template wasn’t being received via teams. I re-wrote my alerts template and now all my alerts are sent to different channels on teams with different alert templates.