无法通过Microsoft Teams消息卡中的'HttpPOST'操作发布到目标URL

问题描述 投票:1回答:1

我正在使用自定义传入的Webhook将可操作的消息卡发布到Microsoft团队的渠道。但是,我无法使用“ HttpPOST”操作来访问目标网址。我提供了准确的目标网址。我可以通过其他来源发布到该网址。每当我单击具有给定操作的按钮时,“无法完成所请求的操作。请稍后再试。'显示此消息。以下是我的留言卡JSON。目标网址是虚拟的。请帮助。

{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "0076D7",
"summary": "Larry Bryant created a new task",
"potentialAction": [{
    "@type": "ActionCard",
    "name": "Add a comment",
    "inputs": [{
        "@type": "TextInput",
        "id": "comment",
        "isMultiline": false,
        "title": "Add a comment here for this task"
    }],
    "actions": [{
        "@type": "HttpPOST",
        "name": "Add comment",
        "body":"hello",
        "bodyContentType":"application/json",
        "target":"https://demo.xyz.com/abc"
    }]
}
]

}

microsoft-teams connector office365connectors
1个回答
0
投票

使用具有开发人员许可的MS Teams后,问题已解决。

© www.soinside.com 2019 - 2024. All rights reserved.