cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compatibility error in Microsoft Teams

Jan_VanBelle
Contributor

Hello,

We are using the Microsoft Teams integration via webhook.

It took quite some time to elaborate a working JSON scheme tot visualize the necessary data

 

{ 
  "@type":"MessageCard", 
  "@context":"http://schema.org/extensions", 
  "themeColor": "61a3f7", 
  "summary": "{Tags[Environment]} - {ProblemID} - {ProblemTitle}", 
  "sections": [{  
    "activityTitle":"{Tags[Environment]} - {ProblemID} - {ProblemTitle}", 
    "activitySubtitle":"{ImpactedEntity}", 
    "Facts":[
     { "name": "State", "value": "{State}" },
     { "name": "Severity", "value": "{ProblemImpact} - {ProblemSeverity}" },
     { "name": "Entities", "value": "{ImpactedEntityNames}"  }
    ]
  }], 
  "potentialAction": [{ 
    "@type": "ActionCard", "name": "Show details", 
    "inputs": [{ "@type": "TextInput", "id": "details", "title": "Problem details", 
                 "value": "{Tags} {ProblemDetailsText}", "isMultiline": true }] 
    },{ 
      "@type": "ActionCard", "name": "Show tags", 
      "inputs": [{ "@type": "TextInput", "id": "details", "title": "Problem tags", 
                 "value": "{Tags}", "isMultiline": true}]
    },{ 
      "@type": "OpenUri", "name": "Open in DT", 
      "targets": [{ "os": "default", "uri": "{ProblemURL}" }]
    }
  ]
}

 

 In MS Teams v1.6.00.20074, this visualizes like:

Jan_VanBelle_0-1698307648813.png

In MS Teams v1.6.00.27573, this visualizes as:

Jan_VanBelle_1-1698307810172.png

Are there other ways to send problem alerts to Microsoft Teams?

Thanks,

Jan

4 REPLIES 4

islam_zidan
Champion

Hello,

This should work fine, you can test your message card using the below emulator

https://messagecardplayground.azurewebsites.net/

 

Thanks,

Islam

Dynatrace Certified Professional - Dynatrace Partner - Yourcompass.ca

when copy-pasting the content above to the messagecardplayground, it seems to work fine.

However, the Teams application on my laptop still has trouble visualizing that content

radek_jasinski
DynaMight Guru
DynaMight Guru

Hi @Jan_VanBelle ,

Microsoft has introduced a new version and the classic version will be abandoned soon. Have you tried sending a webhook to Teams version or higher:

MAC: 23247.720.2421.8365
Windows: 23257.2620.2442.7817

PS:
Notifications from dozens of environments work unchanged for me.

Have a nice day!

Hello,

A colleague of mine already made that update to version 23257.***.*** and got the same error message as in the 2nd screenshot.
I got the same problem on my mobile, but I thought that 'd be related to missing libraries or something.

It would be nice if we could just use those adaptive cards.

Featured Posts