Skip to main content

Notifications

Community site session details

Community site session details

Session Id : yjpp5tZvcxim4UDodh+hmX
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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Automate - Using Flows

#1
stampcoin Profile Picture

stampcoin 32

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 30 Super User 2025 Season 1

#3
RP-25090907-0 Profile Picture

RP-25090907-0 23

Overall leaderboard

Featured topics

Restore a deleted flow