Sending notifications to Microsoft Teams

Sam179
Tera Contributor

I have a requirement to send notifications to teams channel when P1 case is created.

I followed the steps provided here: 

https://dotsh.no/2018/11/29/servicenow-sending-notifications-to-microsoft-teams/

I checked logs and it's returning me error "OUTBOUND REST - Teams monit_alert pri1 - HTTP Status: 400". Can anyone assist?

 

 

6 REPLIES 6

Community Alums
Not applicable

That could be many things. Have you confirmed you are authenticating with the endpoint correctly? Have you tested the webhook using another tool, such as Postman to see if the payload you're sending is valid?

Have you looked at using the MS Team spoke in Integration Hub?

It might be a bit easier than using a custom solution.

Trying to use Postman and it’s giving me “ Invalid webhook request - GET not supported”. Are you familiar with this by any chance? Appreciate your help.

Its not a GET its a POST that you have to do.

 

DrewW
Mega Sage
Mega Sage

HTTP Status 400 is a Bad Request error so I would say something is not formatted properly.  There is a Flow Activity for this, did you use that or the script that is posted on the site you linked to?  If you have it available the "Microsoft Teams" application has a "Post a Message" action that posts a message to a group using a Webhook URL.