Dear all, I've created a webhook targeting an endpoint provided by the Workflow app on MS teams using the "Post to a channel when a webhook request is received" template. However,the webhook request is arriving but it fails with this error:
Action 'Send_each_adaptive_card' failed: The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['attachments']' is of type 'Null'. The result must be a valid array.

I haven't found any solutions but I think what arrives is wrong because it shouldn't be null.
Any suggestion is greatly appreciated also because we have to change all our webhooks and related connectors on MS Teams unfortunately due to this news :
https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/
Thank you very much !