cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Florian_Kleinz
Resolver II
Resolver II

Adaptive Cards - Binding Data

Hi,

 

I'm just programming an adaptive card containing a factset.

{
    "body": [
        {
            "type": "TextBlock",
            "size": "Medium",
            "weight": "Bolder",
            "text": "New Mail"
        },
        {
            "type": "TextBlock",
            "text": "New Mail received",
            "wrap": true
        },
        {
            "type": "FactSet",
            "facts": [
                {
                    "title": "From",
                    "value": "Sender@outlook.com"
                },
                {
                    "title": "Received",
                    "value": "2021/04/23"
                },
                {
                    "title": "File",
                    "value": "[Adaptive Cards](https://adaptivecards.io)"
                }
            ]
        }
    ]
}

 

I was just wondering if I can provide the data seperately as suggested in Microsoft Docs.

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "$data": {
        "properties": [
            {
                "key": "From",
                "value": "Sender@outlook.com"
            },
            {
                "key": "Received",
                "value": "2021/04/23"
            },
            {
                "key": "File",
                "value": "[Adaptive Cards](https://adaptivecards.io)"
            }
        ]
    },
    "body": [
        {
            "type": "TextBlock",
            "size": "Medium",
            "weight": "Bolder",
            "text": "New Mail"
        },
        {
            "type": "TextBlock",
            "text": "New Mail received",
            "wrap": true
        },
        {
            "type": "FactSet",
            "facts": [
                {
                    "$data": "${properties}",
                    "title": "${key}:",
                    "value": "${value}"
                }
            ]
        }
    ]
}

This solution works perfectly in adaptivecards.io but it does not work in Teams.

 

Do you have any recommendations how to use the binding approach?

 

Best regards

Florian

1 REPLY 1
ramon_glez
New Member

Did you find any solution?

 

I just found this workaround:

link 

 

regards

Ramon

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,827)