microsoft / microsoft/AdaptiveCards
[Designer] Data binding button produces invalid binding for arrays
Open
@anna-dingler is already working on this.
Since Dec 5, 2022.
Area-Designer
Bug
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Problem Description
Clicking the ... or Bind... data binding button and selecting a property which is an array, or is contained in an array produces data binding strings in the form ${$root['propertyName[0]'}, which are not valid.
Card JSON
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
{
"type": "TextBlock",
"text": "${$root['employees[0]']['name']}",
"wrap": true
}
],
"data": {
"employees": [
{
"name": "Gabriela Leticia"
},
{
"name": "Natalia Tercera"
},
{
"name": "Waleska Cristobal"
}
]
}
}
Screenshot

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.