Webhook doesn't work

CMK version:
Checkmk Raw Edition 2.3.0p12

Hey!

After Microsoft announced that it would switch off the webhooks, I am trying to switch to Powerautomate. I updated to the highest version and tried to set up a notification according to the instructions for this “work”: Werk #17155: Microsoft Teams: Use workflows instead of connectors.

During a test, no message arrived on Teams. The Powerautomate flow that was created was not executed. (Nothing was changed in the created flow after creation).

To verify that it has nothing to do with my notification rule, I used my old created webhook to check if a message arrived. This was also the case.

Do you have any idea what the problem could be?

Hoppelcheen

What happened if you posted to the end-point manually? I cant replicate this as we are not allowed to use Powerautomate

Yeah, if i use postman - the flow is triggered

After playing around a bit, I realized that the HTTP URL is not being “pushed”. I took the following steps:

  1. created the desired workflow from CheckMK in the desired Teams channel.
  2. copied the URL
  3. stored the URL in the notification settings
  4. saved

I triggered some alerts and I dont see any actions in the workflow history…

When I insert the old Webhook URL into the notifications settings - it works perfectly.

I dont understand why my workflow doesnt work/ get pushed :slight_smile:

I may have the same Problem as you. Check my Topic. Do you find Infos in “Failed notifications” as I do?

We recently wrote this KB article. At the very bottom it also has a section for PowerAutomate. Can you check this?

https://checkmk.atlassian.net/wiki/spaces/KB/pages/151158785/Microsoft+Teams+Use+workflows+instead+of+connectors#MicrosoftTeams:Useworkflowsinsteadofconnectors-PowerAutomate

Thank you for your reply.

I checked the KB article and I created the same Workflow as it shows in the article.

But unfortunately the workflow doesnt get triggered. With the “old” Webhook function, it works totaly fine.

I also tried to send the “working” JSON from the KB article to my Workflow URL via Postman and it says this:

{
    "error": {
        "code": "TriggerInputSchemaMismatch",
        "message": "The input body for trigger 'manual' of type 'Request' did not match its schema definition. Error details: 'Invalid type. Expected Object but got Array.'."
    }
}

Here are some Screenshots:

WIth Postman it works well, I can confirm this. You just need to tune the settings right. :slight_smile:

POST
Headers: (Content-Type application/json)
Body: Raw —JSON

And I use the following skript:

Blockquote
{
“type”:“message”,
“attachments”:[
{
“contentType”:“application/vnd.microsoft.card.adaptive”,
“contentUrl”:null,
“content”:{
“$schema”:“http://adaptivecards.io/schemas/adaptive-card.json”,
“type”:“AdaptiveCard”,
“version”:“1.2”,
“body”:[
{
“type”: “TextBlock”,
“text”: “Postman”
}
]
}
}
]
}