I am trying to setup teams alerting and its not working following the guide. Microsoft Teams Integration with SolarWinds Platform Alerts
If I set it to application/json in solarwinds, solarwinds doesnt fail but teams does. I also get the same error if I use application/vnd.microsoft.teams.card.0365connector but only if the body is blank.
On the content type, use application/json
might want to check this out too Microsoft Retiring Office365 Connectors to move to Power Automate Workflows - has anyone done anything with this yet? - Forum - Network Performance Monitor (NPM) - THWACK
I was able to resolve this issue using application/json and setting the workflow steps different from the official documentation.
{"attachments": [{"contentType": "object","content": {"type": "AdaptiveCard","$schema": "http://adaptivecards.io/schemas/adaptive-card.json","version": "1.5","body": [{"style" : "expanded","color": "attention", "type": "TextBlock","text": "${N=Alerting;M=AlertName}","isSubtle": false,"wrap": false,"size": "Large","weight": "Bolder","spacing": "None"}, {"type": "TextBlock","text": "**Node:** ${NodeName}","isSubtle": false,"wrap": false,"spacing": "None"}, {"type": "TextBlock","text": "**Status:** ${N=SwisEntity;M=Status;F=Status}","isSubtle": false,"wrap": false,"spacing": "None"},{"type": "TextBlock","text": "**IP:** ${N=SwisEntity;M=IP_Address}","isSubtle": false,"wrap": false,"spacing": "None"},{"type": "TextBlock","text": "**Business Unit:** ${N=SwisEntity;M=CustomProperties.BusinessUnit}","isSubtle": false,"wrap": false,"spacing": "None"},{"type": "TextBlock","text": "**Vendor:** ${N=SwisEntity;M=Vendor}","isSubtle": false,"wrap": false,"spacing": "None"},{"type": "TextBlock","text": "**Model:** ${N=SwisEntity;M=MachineType}","isSubtle": false,"wrap": false,"spacing": "None"},{"type": "TextBlock","text": "**Packet Loss:** ${N=SwisEntity;M=Stats.PercentLoss}","isSubtle": false,"wrap": false,"spacing": "None"},{"type": "TextBlock","text": "**Latency:** ${N=SwisEntity;M=ResponseTime;F=ResponceTime}","isSubtle": false,"wrap": false,"spacing": "None"},{"type": "TextBlock","text": "**Time:** ${N=Generic;M=DateTime;F=DateTime}","isSubtle": false,"wrap": false,"spacing": "None"},]}