Teams Webhook - What am I doing wrong? #3892
Unanswered
Dirtydraggel
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Been trying to enable the webhook notification on teams. Getting 400 error with test template as well as 400 error when I approve anything.
Log Details
Timestamp
Jul 07, 2024, 9:44:57 AM
Severity
ERROR
Label
Notifications
Message
Error sending webhook notification
Additional Data
{
"errorMessage": "Request failed with status code 400",
"response": "Summary or Text is required.",
"subject": "Test Notification",
"type": "TEST_NOTIFICATION"
}
and this is what is being sent on the log
Log Details
Timestamp
Jul 07, 2024, 9:44:56 AM
Severity
DEBUG
Label
Notifications
Message
Sending webhook notification
Additional Data
{
"subject": "Test Notification",
"type": "TEST_NOTIFICATION"
}
When I change the webhook url to a test page such as webhook-test.com it works flawlessly for both test and when approving anything.
Using Invoke restmethod from powershell works fine so the URL should not be an issue.
"Invoke-RestMethod -Method post -ContentType 'Application/Json' -Body '{"text":"Hello World!"}' -Uri "https://mydomainandtenant"
Would love to get this up and running, seems like a cool integration to use.
Beta Was this translation helpful? Give feedback.
All reactions