When I try to use an action that connects with Teams, I get the following error:
The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerBody()' is of type 'Object'. The result must be a valid array.
So, Teams can interact with the required action, but it hasn't been able to read it with the expected format.
What is the correct expression I should use in Teams?
I’m attaching images of the action and the Teams error.
triggerBodyis the set of data that starts the trigger, and it's basically an object with properties, but you're telling it to expense an array. Maybe you're trying to sendmessagesas an array on the trigger body? If so, you need to tell Power Automate which sub property on the triggerBody you're trying to set. Please send more details about your trigger body, and what you're passing as the input to thesend each adaptive cardaction