1. A webhook channel cannot be saved until its tested successfully
2. I was able to create this webhook channel through API, however get a below error when i try to use it. When i hit the MS teams webhook directly with postman it works fine.
{
"text": "AutoTicket: host: ${host} msg: ${message} Sev: ${severity} Ticket: ${troubleTicket} Robot:${robot} Alarm Status: ${status} ",
"potentialAction": [
{
"@type": "OpenUri",
"name": "View Details in DX OI",
"targets": [
{
"os": "default",
"uri": "${situations_url}"
}
]
}
]
}
All need is text
worked with above after change below was made.
Before then , seeing Failed Socket exception
MS Teams Webhook https://<comp>.example.com/webhook/<guid1>@<guid2>/IncomingWebhook/<guid3>/<guid4>
wrong Webhook url -- extra characters at the end