【问题标题】:Microsoft Teams Webhook - Use IP address as target's actionsMicrosoft Teams Webhook - 使用 IP 地址作为目标的操作
【发布时间】:2021-05-25 10:40:06
【问题描述】:

在 Microsoft Teams 中,我使用 webhook 创建交互式卡片,如此处所述https://docs.microsoft.com/fr-fr/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using 但是对于交互卡的每个按钮,我想使用 IP 地址作为目标的操作。

{
    "@type": "MessageCard",
    "@context": "https://schema.org/extensions",
    "summary": "test",
    "themeColor": "F27C54",
    "title": "test",
    "potentialAction": [
        {
            "@type": "OpenUri",
            "name": "Learn More",
            "targets": [{
                "os": "default",
                "uri": "https://docs.microsoft.com/outlook/actionable-messages"
            }]
        }, 
        {
            "@type": "OpenUri",
            "name": "Learn More 2",
            "targets": [{
                "os": "default",
                "uri": "http://142.250.201.163"
            }]
        }
    ]
}

使用此 JSON 代码,这两个操作可以在 Microsoft Teams 的正确通道中正确创建带有两个按钮的交互。这两个按钮都是可点击的。但是,当第一个按钮打开一个 URL 为 https://docs.microsoft.com/outlook/actionable-messages 的 Web 浏览器时,第二个按钮打开一个 URL 为 https://teams.microsoft.com/null 的 Web 浏览器。

有什么解决办法吗?提前致谢。

【问题讨论】:

  • 您是从团队 Web 客户端还是桌面客户端遇到这个问题?
  • 桌面客户端。
  • 网页客户端出现同样的错误。
  • 嗨@Arnaud Schneider - 我能够重现这个问题,我们已经为此提出了一个错误,相关团队正在努力解决这个问题。
  • 好消息!非常感谢!

标签: microsoft-teams


【解决方案1】:

您在第二个按钮中使用了 http URL。可以试试https吗

由于安全原因,http URL 未呈现。

【讨论】:

  • 您还应该有一个可用于 https url 的有效 SSL 证书。尝试使用ngrok.com 测试本地网址
  • 好的,但是我检查了一个 http:// URL 并且它是可以访问的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-02-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-08-01
相关资源
最近更新 更多