我正在使用“可操作的消息”从Flow向Outlook中的用户发送调查,然后将这些响应作为项目存储在SharePoint列表中并将其存储。我可以将响应捕获到SharePoint中,但是如何捕获并保存谁回答了调查?
撰写可操作的消息:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="application/adaptivecard+json">
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"originator": "**Removed_for_privacy**",
"body": [
{
"type": "Container",
"spacing": "None",
"style": "emphasis",
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "Feedback"
}
],
"width": "stretch",
"padding": "None"
}
],
"padding": "None"
}
],
"padding": "Default"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"text": "Help us improve by taking our short satisfaction survey.",
"wrap": true
}
],
"padding": "Default",
"spacing": "None",
"separator": true
},
{
"type": "Container",
"id": "**Removed_for_privacy**",
"padding": "None",
"items": [
{
"type": "Container",
"spacing": "None",
"style": "default",
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "Responder Name: "
}
],
"width": "stretch",
"padding": "None"
}
],
"padding": "None"
}
],
"padding": "Default"
}
],
"spacing": "None"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"weight": "Bolder",
"text": "1\\. How likely is that you would recommend the tool to a friend or colleague?",
"wrap": true
},
{
"type": "Input.ChoiceSet",
"id": "Recommendation",
"placeholder": "Select rating",
"choices": [
{
"title": "1",
"value": "1"
},
{
"title": "2",
"value": "2"
},
{
"title": "3",
"value": "3"
},
{
"title": "4",
"value": "4"
},
{
"title": "5",
"value": "5"
}
],
"isRequired": true
},
{
"type": "TextBlock",
"weight": "Bolder",
"text": "2\\. Overall, how would you rate the event?",
"wrap": true,
"spacing": "Large"
},
{
"type": "Input.ChoiceSet",
"id": "OverallRating",
"choices": [
{
"title": "Excellent",
"value": "Excellent"
},
{
"title": "Very Good",
"value": "Very Good"
},
{
"title": "Good",
"value": "Good"
},
{
"title": "Fair",
"value": "Fair"
},
{
"title": "Poor",
"value": "Poor"
}
],
"style": "expanded",
"isRequired": true
},
{
"type": "TextBlock",
"weight": "Bolder",
"text": "3\\. What did you like about the tool?",
"wrap": true,
"spacing": "Large"
},
{
"type": "Input.Text",
"id": "Comment",
"placeholder": "Tell us everything",
"isMultiline": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Http",
"title": "Submit",
"method": "POST",
"url": "https://prod-13.westus.logic.azure.com:443/workflows/**Removed_for_privacy**/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=**Removed_for_privacy**",
"body": "{\"Recommendation\": \"{{Recommendation.value}}\", \"OverallRating\":\"{{OverallRating.value}}\", \"Comment\":\"{{Comment.value}}\"}",
"isPrimary": true,
"style": "positive",
"headers": [
{
"name": "Authorization",
"value": ""
},
{
"name": "Content-type",
"value": "application/json"
}
],
"id": "Submit"
}
]
}
],
"padding": {
"top": "Small",
"bottom": "Default",
"left": "Default",
"right": "Default"
},
"spacing": "None"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0",
"padding": "None"
} </script>
</head>
收到HTTP请求后,捕获可操作消息(JSON):
{
"type": "object",
"properties": {
"Recommendation": {
"type": "string"
},
"OverallRating": {
"type": "string"
},
"Comment": {
"type": "string"
}
}
}
请参阅屏幕截图: Capture actionable message responses