具有Microsoft Flow Json的可操作消息-仅适用于我的电子邮件(发送给其他人的空邮件)

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

我使用Json代码构建了Microsoft流程,该代码为邮件收件人定制了一条可行的消息。该流从SharePoint列表中获取数据,然后通过邮件发送批准请求。邮件收件人可以通过单击邮件中的按钮来批准或拒绝。当我在流中设置我的电子邮件时,该流工作正常,但是当我设置其他Outlook邮件用户时,他们收到了空消息。

the Flow with json code

<script type="application/ld+json">
    {
"@type": "MessageCard",
"@context": "https://schema.org/extensions",
"summary": "This is the summary property",
"themeColor": "0075FF",
"sections": [
{
},
{
"startGroup": true,
"title": "**Pending approval - Waiver No. **** ver' ****",
"activityTitle": "Requested by **** department: ****",
"activitySubtitle": "",
"facts": [
    {
        "name": "Date submitted:",
        "value": ""
    },

 {
        "name": "Details:",
        "value": ""
    },
    {
        "name": "Link:",
        "value": "[Click here to view the item]()"
    }
]
},
{
"potentialAction": [
    {
        "@type": "ActionCard",
        "name": "Approve",
        "inputs": [
            {
                "@type": "TextInput",
                "id": "comment",
                "isMultiline": true,
                "title": "Reason (optional)"
            }
        ],
        "actions": [
            {
                "@type": "HttpPOST",
                "name": "Submit",
    "body":"{\"itemID\":\"@{body('Get_item')?['ID']}\",\"comment\":\"{{comment.value}}\",\"Approve\":\"Yes\"}",
                 "target": "https://...",
                            "headers": [
                             {
                            "name": "Authorization",
                            "value": ""
                             }
                       ]
            }
        ]
    },
    {
        "@type": "ActionCard",
        "name": "Reject",
        "inputs": [
            {
                "@type": "TextInput",
                "id": "comment",
                "isMultiline": true,
                "title": "Reason (optional)"
            }
        ],
        "actions": [
            {
                "@type": "HttpPOST",
                "name": "Submit",
      "body":"{\"itemID\":\"@{body('Get_item')?['ID']}\",\"comment\":\" {{comment.value}}\",\"Approve\":\"No\"}",
                            "target": "https://...",
                            "headers": [
                             {
                            "name": "Authorization",
                            "value": ""
                             }
                       ]
            }
        ]
    }
]
}
]
}
</script>
json sharepoint office365 flow
1个回答
0
投票

您必须注册并批准可操作的消息,请检查此链接:https://docs.microsoft.com/en-us/outlook/actionable-messages/send-via-email

读取矩形:enter image description here

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