Hi experts
I need help with creating a flow to display simple texts sent via CURL from bash script on linux machine in a form of (adaptive) card in my Teams channel.
The command on linux look like this
teams-workflow.sh -t "TITLE" -x "MESSAGE"
and I expect to receive a simple message like this
TITLE
MESSAGE
I have a webook (with new URL), it works. I am sending a preformatted JSON payload in form of adaptive card. However, I fail to display it properly. Either I get an error like this
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.
or I see a notification but with some default texts from the card template (defined by me in the flow). I also tried a step in between with the JSON Parse block. The left path in the flow is just to make sure I see some notification when the trigger works. I could not find a way to either "inject" the JSON data directly to the Card using the "Post card in a chat or channel" and its "Adaptive card" attribute, or by recreating the structure of the JSON card in the flow and using the dynamic variables (content, attachment, body, Body, text...) to get the TITTLE and MESSAGE data somehow.
Thanks for any help.