输入值替换不适用于MS Teams中的消息卡

时间:2020-01-18 19:22:38

标签: microsoft-teams office365connectors

我正在使用带有一些用户输入字段的消息卡执行HttpPost。该消息卡发送给MS团队,并包含对另一个目标的Http Post操作,该目标接收用户的选定输入。我正在Http Post正文中发送User的数据。输入值替换在MS Team桌面上工作正常,但在MS Team 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 Team桌面收到的尸体:

"body": {
    "Comment": "Test",
    "Choice1": "Myinput",
    "Choice2": "Myinput"
}

0 个答案:

没有答案