Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 9Ed1qp9pXAbemj6sTd2oSt
Power Automate - Using Flows
Unanswered

Post to a channel when a webhook request is received from Dynatrace custom integration

Like (0) ShareShare
ReportReport
Posted on 12 Dec 2024 14:15:58 by

Hi. I'm trying to migrate over from old webhooks to workflow webhooks due to the retirement of Office 365 connectors.
I used to just send an easy custom payload with placeholders i made in Dynatrace that took information from a problem and sent the payload to Teams:
 
Tried to just change the webhook with one i made with the trigger "When a Teams webhook request is received" and action "Post adaptive card and wait for response" where i picked "contentType" as Dynamic content (only options i got was type, contentType, $schema and version). Got the following error:

I made an Adaptive Card and put it in the custom payload in Dynatrace
{
    "type": "AdaptiveCard",
    "attachments": [      
        {        
            "contentType": "application/vnd.microsoft.card.adaptive",
            "contentUrl":null,
            "content": {
                "$$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "type": "AdaptiveCard",
                "version": "1.4",
                "body": [
                    {
                        "type": "TextBlock",
                        "size": "Medium",
                        "weight": "Bolder",
                        "text": "Dynatrace problem notification"
                    },
                    {
                        "type": "TextBlock",
                        "weight": "Bolder",
                        "text": "{state}",
                        "wrap": true
                    },
                    {
                        "type": "TextBlock",
                        "weight": "Bolder",
                        "text": "{ProblemID}",
                        "wrap": true
                    },
                    {
                        "type": "TextBlock",
                        "weight": "Bolder",
                        "text": "{ProblemTitle}",
                        "wrap": true
                    }
                ]
            }
        } 
    ]
}

and got the following error:

Been going back and worth trying different ways to write adaptive cards, having them in the custom payload or having them in the action message and try to call on functions with the information in the payload in the webhook without getting it to work. Feel like i have read most of the forums and discussions that are now, so felt it was time to post a question myself.

Please help, code and last error picture above is what i have now.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Using Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 9 Super User 2025 Season 1

#2
rzaneti Profile Picture

rzaneti 7 Super User 2025 Season 1

#3
lbendlin Profile Picture

lbendlin 4 Super User 2025 Season 1

Overall leaderboard

Featured topics

Restore a deleted flow
Loading started