Need help with configuring Webhook to MS teams

This is working for me right now:

View attachment 82344

JSON:
{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "themeColor": "e57000",
  "summary": "{{ title }}",
  "sections": [
    {
      "activityTitle": "{{ title }}",
      "activitySubtitle": "Proxmox Notification from ",
      "activityImage": "https://img.icons8.com/?size=512&id=53iFar0HpEW9&format=png",
      "facts": [
        {
          "name": "Host",
          "value": "{{ fields.hostname }}"
        },
        {
          "name": "Message",
          "value": "{{ message }}"
        },
        {
          "name": "Severity",
          "value": "{{ severity }}"
        }
      ],
      "markdown": true
    }
  ]
}


View attachment 82345


Pls be aware that the png used is not my property nor GPL / GNU and needs to be replaced !

Cheers

Thanks for Your solution and sorry for that late reply.
I tested it, it worked. But {{ fields.hostname }} does not get populated ( as also in Your images ).

Update:
Never mind. {{ fields.hostname }} only works for "real" messages.
In Testmessages this field is left blank.
 
Last edited: