0

尝试使用 FactSet 在我的 AdaptiveCard 中显示多个数据

这是我从数据库中检索数据并创建我的 json 对象的时候

在此处输入图像描述

这是我创建自适应卡片的地方

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0",
  "type": "AdaptiveCard",
  "speak": "Your flight is confirmed for you and 3 other passengers from San Francisco to Amsterdam on Friday, October 10 8:30 AM",
  "body": [
    {
      "type": "FactSet",
      "facts": [
          {
            "$data": "${dialog.productFamily}",
            "title": "${key}",
            "value": "${value}"
          }
      ]
    }
  ]
}

这就是错误

getProduct.en-us.lg:Unexpected character at Path body[0].facts[0].$data, line 14, position 5 when parsing
4

1 回答 1

0

自适应卡片模板尚未在机器人框架 SDK 中实现。 https://github.com/microsoft/botframework-sdk/issues/6477

于 2022-03-01T04:15:07.383 回答