0

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.

enter image description here enter image description here

1
  • This is not a Teams problem - it's because the format of what you're passing it doesn't match what you're trying to do. In more clear terms, triggerBody is 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 send messages as 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 the send each adaptive card action Commented Mar 14 at 14:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.