无法在 Microsoft Teams 中显示按钮
Unable to show the button in Microsoft Teams
对于下面的json数据无法在Microsoft Team中显示按钮
但这在 Outlook 中工作正常。谁能帮我解决这个问题?泰
请参考下面的照片link。
{"@type": "MessageCard",
"title": "System Alert",
"text" : "Network Error",
"themeColor": "E81123",
"potentialAction": [
{
"@type": "ActionCard",
"name": "",
"inputs": [
{
"@type": "TextInput",
"id": "comment",
"title": "Enter your comment",
"isMultiline": "true"
}
],
"actions": [
{
"@type": "HttpPOST",
"name": "OK",
"target": "https://ptsv2.com/t/ANA/post",
"body": "comment={{comment.value}}"
}
]
}
]
}
Microsoft Teams output
Outlook output
请尝试输入行动卡的名称值 ("name": "ActionCardName")
{"@type": "MessageCard",
"title": "System Alert",
"text" : "Network Error",
"themeColor": "E81123",
"potentialAction": [
{
"@type": "ActionCard",
"name": "ActionCardName",
"inputs": [
{
"@type": "TextInput",
"id": "comment",
"title": "Enter your comment",
"isMultiline": "true"
}
],
"actions": [
{
"@type": "HttpPOST",
"name": "OK",
"target": "https://ptsv2.com/t/ANA/post",
"body": "comment={{comment.value}}"
}
]
}
]
}
您可以MessageCard Playground使用“通过 Webhook 发送”按钮对此进行测试。
对于下面的json数据无法在Microsoft Team中显示按钮 但这在 Outlook 中工作正常。谁能帮我解决这个问题?泰 请参考下面的照片link。
{"@type": "MessageCard",
"title": "System Alert",
"text" : "Network Error",
"themeColor": "E81123",
"potentialAction": [
{
"@type": "ActionCard",
"name": "",
"inputs": [
{
"@type": "TextInput",
"id": "comment",
"title": "Enter your comment",
"isMultiline": "true"
}
],
"actions": [
{
"@type": "HttpPOST",
"name": "OK",
"target": "https://ptsv2.com/t/ANA/post",
"body": "comment={{comment.value}}"
}
]
}
]
}
Microsoft Teams output Outlook output
请尝试输入行动卡的名称值 ("name": "ActionCardName")
{"@type": "MessageCard",
"title": "System Alert",
"text" : "Network Error",
"themeColor": "E81123",
"potentialAction": [
{
"@type": "ActionCard",
"name": "ActionCardName",
"inputs": [
{
"@type": "TextInput",
"id": "comment",
"title": "Enter your comment",
"isMultiline": "true"
}
],
"actions": [
{
"@type": "HttpPOST",
"name": "OK",
"target": "https://ptsv2.com/t/ANA/post",
"body": "comment={{comment.value}}"
}
]
}
]
}
您可以MessageCard Playground使用“通过 Webhook 发送”按钮对此进行测试。