Sending notifications to Microsoft Teams
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 09:34 AM
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?
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 09:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 12:27 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 01:31 PM
Its not a GET its a POST that you have to do.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 09:53 AM
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.