我正在使用带有一些用户输入字段的消息卡执行 HttpPost。消息卡被发送到 MS 团队,并包含一个 Http Post 操作到另一个目标,该目标接收用户选择的输入。我在 Http Post 的正文中发送用户的数据。输入值替换在 MS 团队桌面中工作正常,但在 MS 团队 android 中不起作用。任何建议都受到高度赞赏。
带有 httpPost 的片段:
{
"@type": "ActionCard",
"actions": [
{
"@type": "HttpPOST",
"body": "{\"Comment\":\"{{Comment.value}}\",\"Choice1\" : \"{{1c.value}}\",\"Choice2\" : \"{{2c.value}}\"}",
"name": "Submit Edit",
"target": "https://.."
}
],
"inputs": [
{
"@type": "TextInput",
"id": "Comment",
"isMultiline": true,
"isRequired": true,
"title": "Comment"
},
{
"@type": "TextInput",
"id": "1c",
"title": "Choice 1"
},
{
"@type": "TextInput",
"id": "2c",
"title": "Choice 2"
}
],
"name": "Edit"
}
]
}
从 MS 团队 android 收到的正文:
"body": {
"Comment": "{{Comment.value}}",
"Choice1": "{{1c.value}}",
"Choice2": "{{2c.value}}"
}
从 MS 团队桌面收到的正文:
"body": {
"Comment": "Test",
"Choice1": "Myinput",
"Choice2": "Myinput"
}