MS Teams Webhook Setup
search cancel

MS Teams Webhook Setup

book

Article ID: 276201

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

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.

Resolution

{
 "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