MS Teams workflow integration

Hello,

I am encountering an issue while attempting to integrate the new MS Teams Workflow feature “Post a card to a channel” with GitLab CI.

Here is the issue:
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.

Does anyone have any suggestions on how to resolve this?