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.
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.