Сообщения Actionable с Microsoft Flow Json - работает только на мою электронную почту (пустая почта для других) - PullRequest
0 голосов
/ 16 мая 2019

Я создаю поток Microsoft с кодом Json, который настраивает действенное сообщение для почтовых получателей. Поток берет данные из списка 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>
...