I have a webhook setup to post a message to one of our Teams Team channels. I'm using one of the teams webhook examples given here: https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#hero-card .
The problem I have is that I am unable to display multiple lines. In the example below, I'd like to separate out 'Test1' and 'Test2' on separate lines. However, using or in the JSON didn't translate to multi line format in Teams. Screenshot outcome attached below.
"type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.hero", "content": { "title": "Alerts", "text": "*Test1 *Test ", "buttons": [ { "type": "openUrl", "title": "Open in SumoLogic", "value": "" } ] } } ] }
What is the way to send a multi-line message to Teams using webhook? Any guidance here is appreciated.
@Anoj Shrestha Please try using and check.
2.1m questions
2.1m answers
60 comments
57.0k users