You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The example given here does not work anymore after Microsoft changed over to using Power Automate instead of directly with Microsoft Teams for the Web API. As a result, it no longer works.
Action 'Send_each_adaptive_card' failed: 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.
This is what Copilot says about the error:
Your 'Send each adaptive card' action is failing because it is trying to iterate over a parameter that is null, specifically the 'attachments' parameter from the flow's trigger. This means that the flow is not receiving any attachments, which is likely causing the issue. To resolve this, you might want to check if the trigger is supposed to include attachments and ensure that you are referencing the correct parameter that contains the attachments, or consider adding a condition to handle cases where there are no attachments.
Expected behavior
A message is sent to the channel I specified in the Power Automate Webhook.
Are you using the binary or the source code?
Binary
Your information
Ryan A. Blake / AS10248
The text was updated successfully, but these errors were encountered:
Describe the bug
The example given here does not work anymore after Microsoft changed over to using Power Automate instead of directly with Microsoft Teams for the Web API. As a result, it no longer works.
Provide an example
Error message in Power Automate:
Action 'Send_each_adaptive_card' failed: 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.
This is what Copilot says about the error:
Your 'Send each adaptive card' action is failing because it is trying to iterate over a parameter that is null, specifically the 'attachments' parameter from the flow's trigger. This means that the flow is not receiving any attachments, which is likely causing the issue. To resolve this, you might want to check if the trigger is supposed to include attachments and ensure that you are referencing the correct parameter that contains the attachments, or consider adding a condition to handle cases where there are no attachments.
Expected behavior
A message is sent to the channel I specified in the Power Automate Webhook.
Are you using the binary or the source code?
Binary
Your information
Ryan A. Blake / AS10248
The text was updated successfully, but these errors were encountered: