【发布时间】:2019-09-28 05:22:02
【问题描述】:
我们正在使用以下 Graph API https://docs.microsoft.com/en-us/graph/api/channel-post-chatmessage?view=graph-rest-beta&tabs=cs
在频道中发布自适应卡片我们的有效载荷是
{
"body":{
"contentType":"html",
"content":"<attachment id="attachmentId"></attachment>" // for attachmentId see attachments section below
},
"attachments":[
{
"id":"attachmentId",
"content":cardData // this is JSON.stringify of actual Adaptive card data
}
]
}
我们的自适应卡片也像
{
"type":"AdaptiveCard",
"$schema":"http://adaptivecards.io/schemas/adaptive-card.json",
"body":"some body",
"actions":[
{
"type":"Action.OpenUrl",
"title":"Suggest Item",
"url":"https://teams.microsoft.com/l/task/2a05d07c-d194-400e-8122-cad64cfe1cef?url=https%3A%2F%2Flocalhost%3A44349%2Fteams%2F%23%2Fsuggest%2Fee31b3aa-f60f-4594-a964-a01fcc461ceb%3Ffrom%3Dcard&height=540&width=800&title=*Suggest%20item"
}
]
}
如果我在聊天中发布任务模块网址并单击它可以工作,
但它不适用于 Adaptive Card Action.OpenUrl
以前它曾经工作过
【问题讨论】:
-
我的网址中有一个
*,所以链接不起作用
标签: microsoft-graph-api microsoft-teams adaptive-cards