在 MS 团队留言卡的表格中添加数据

Jus*_*per -1 webhooks microsoft-teams

想要在留言卡中像这样在表格中显示数据。有什么指点???

在此处输入图片说明

Jus*_*per 6

I was able to use message card itself for inserting HTML in the way below, the HTML went as a value against the key "text" and I made it a separate group under sections

{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "themeColor": "0076D7",
  "summary": "XXXX",
  "sections": [
    {
      "activityTitle": "XXXX",
      "activitySubtitle": "",
      "activityImage": "",
      "facts": [
        {
          "name": "XX",
          "value": "**1**"
        },
        {
          "name": "YY",
          "value": "**test**"
        }
      ],
      "markdown": true
    },
    {
      "startGroup": true,
      "text": "<table bordercolor='black' border= '2'><thead><tr style = 'background-color : Teal; color: White'><th>Task</th><th>Status</th><th>Start Time</th><th>End Time</th></tr></thead></thead><tbody ><tr><td>xxx</td><td>yyy</td><td>14:25</td></tr><tr><td>xxx</td><td>yyy</td><td>15:25</td><td>16:25</td></tr></tbody></table>"
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)