Forum Discussion
kaangoksal
Microsoft
Oct 13, 2023Dynamic Data Binding on Teams Adaptive Card tables
Hi, I have a very basic card, and I couldn't get it working, also couldn't find good examples for it as well. I decided to ask it here. I have this card template, very simple: this is the data:...
kaangoksal
Microsoft
Mar 01, 2024
I pasted your suggestions, it doesn't work.
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
{
"type": "Table",
"columns": [
{
"width": 1
},
{
"width": 1
}
],
"items": [
{
"$data": "${data}",
"type": "TableRow",
"cells": [
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "${key}",
"wrap": true
}
]
},
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "${value}",
"wrap": true
}
]
}
]
}
]
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"$data": [
{
"name": "Matt"
},
{
"name": "David"
},
{
"name": "Thomas"
}
],
"text": "${name}"
}
]
}
]
}
this one is from your reply ^
this is the data v
{
"data": [
{
"key": "Board",
"value": "Adaptive Cards"
},
{
"key": "List",
"value": "Backlog"
},
{
"key": "Assigned to",
"value": "Matt Hidinger"
},
{
"key": "Due date",
"value": "Not set"
}
]
}
used this link
https://adaptivecards.io/designer/
I'm also looking at other examples from the community and they also don't render
https://techcommunity.microsoft.com/t5/teams-developer/adaptive-card-dynamic-table-row-with-input/m-p/3987986
kaangoksal
Microsoft
Mar 01, 2024Spent some more time on this apparently I was not pressing the preview mode button, if you press that it renders it. My initial json was right, also the community one.