【问题标题】:AdaptiveCard doesn't render in Office 365 Proplus OutlookAdaptiveCard 无法在 Office 365 Proplus Outlook 中呈现
【发布时间】:2020-11-18 09:29:25
【问题描述】:

我无法在 Office365 的 Outlook 软件中呈现 AdaptiveCard。它作为附件传递或显示以下消息

此消息是从 MessageCard Playground 工具发送的。

如果卡片未出现,请安装 Actionable Messages Debugger Outlook 插件以调试问题。

附加到此消息的卡片的 JSON 有效负载:

我的问题是如何使其工作或 AdaptiveCard 不适用于 Office 365 Outlook 版本?

{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"originator": "<id>",
"version": "1.0",
"body": [
    {
        "type": "ColumnSet",
        "columns": [
            {
                "width": 1,
                "items": [
                    {
                        "type": "Container",
                        "padding": {
                            "top": "None",
                            "bottom": "None",
                            "left": "Small",
                            "right": "None"
                        },
                        "items": []
                    },
                    {
                        "type": "Container",
                        "backgroundImage": "https://filedepot.blob.core.windows.net/build/header.png",
                        "spacing": "Small",
                        "items": [
                            {
                                "type": "TextBlock",
                                "text": "TOM Notes",
                                "size": "Medium",
                                "color": "Light",
                                "horizontalAlignment": "Left",
                                "wrap": true
                            }
                        ],
                        "padding": "None"
                    },
                    {
                        "type": "Container",
                        "padding": "Small",
                        "items": [
                            {
                                "type": "ColumnSet",
                                "columns": [
                                    {
                                        "type": "Column",
                                        "width": "auto",
                                        "items": [],
                                        "padding": "None"
                                    },
                                    {
                                        "type": "Column",
                                        "width": "stretch",
                                        "items": [
                                            {
                                                "type": "TextBlock",
                                                "text": "**Me** submitted on 23rd July"
                                            },
                                            {
                                                "type": "TextBlock",
                                                "text": "Hi ",
                                                "spacing": "",
                                                "size": "Small"
                                            },
                                            {
                                                "type": "TextBlock",
                                                "text": "**Reply**",
                                                "spacing": "",
                                                "size": "Small"
                                            },
                                            {
                                                "type": "Input.Text",
                                                "id": "comment",
                                                "isMultiline": true
                                            }
                                        ],
                                        "padding": "None"
                                    }
                                ],
                                "padding": "None"
                            },
                            {
                                "type": "ActionSet",
                                "id": "expenseActions",
                                "horizontalAlignment": "Left",
                                "actions": [
                                    {
                                        "type": "Action.Http",
                                        "headers": [
                                            {
                                                "name": "Content-Type",
                                                "value": "application/json"
                                            }
                                        ],
                                        "method": "post",
                                        "url": "Azure function",
                                        "title": "Submit",
                                        "body": "{<json payload>}"
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "type": "Column",
                "padding": "None"
            }
        ],
        "padding": "None"
    }
],
"padding": "None"

}

office license details

【问题讨论】:

    标签: outlook adaptive-cards


    【解决方案1】:

    在与 Office 365 团队合作后解决了这个问题。他们已经部署了补丁。

    【讨论】:

      猜你喜欢
      • 2016-09-24
      • 1970-01-01
      • 2020-06-25
      • 1970-01-01
      • 1970-01-01
      • 2018-03-20
      • 1970-01-01
      • 2023-03-05
      • 1970-01-01
      相关资源
      最近更新 更多