无法在Microsoft Teams中显示该按钮

时间:2018-04-20 05:39:45

标签: json outlook microsoft-teams

对于下面的json数据无法显示Microsoft Team中的按钮 但这在Outlook中运行良好。有人可以帮我解决这个问题吗? TY 请参阅下面的照片链接。

{"@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

1 个答案:

答案 0 :(得分:0)

请尝试输入操作卡的名称值("名称":" 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发送”按钮对此进行测试。