未能为Microsoft Teams网站尝试webhook

时间:2017-10-13 14:02:56

标签: microsoft-teams asp.net-webhooks

任何人都知道我做错了什么或者现在有什么东西不起作用了吗?

  • 我使用MessageCard Playground并希望将数据发送到Teams-Channel。
  • 我确实设置了连接器并获得了一个webhook网址。 enter image description here
  • 现在我想将一些样本发送到频道(有效的json)

获取此错误: enter image description here

知道我做错了吗?

更新

示例JSON

{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "summary": "Issue 4711",
  "themeColor": "0078D7",
  "title": "Issue opened: \"TEST Message for webhook\"",
  "sections": [
    {
      "activityTitle": "Yves Rausch",
      "activitySubtitle": "10/12/2017, 22:34",
      "facts": [
        {
          "name": "Title:",
          "value": "TinyMCE 4 implementieren"
        },
        {
          "name": "Issue #:",
          "value": "6417"
        }
      ],
      "text": "There is a push webhook info and leads me to the workflow."
    }
  ],
  "potentialAction": [
    {
      "@type": "OpenUri",
      "name": "View in process",
      "targets": [
        { "os": "default", "uri": "https://intranet.tqsoft.net/ror/workflowact/6417" }
      ]
    }
  ]
}

1 个答案:

答案 0 :(得分:2)

目前看来MessageCard Playground中存在一个错误,阻止它正确地发布到webhook端点。

我建议尝试使用Postman发出HTTP请求。您只需从操场上复制并浏览JSON即可。有关如何进行此设置的详细信息,请参阅Sending actionable messages via Office 365 Connectors