cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KarolKozlowski
Frequent Visitor

Adaptive Card and ChoiceSet from variable/data source

Hey,

I need to create  Adaptive Card/Actionable Message for Outlook where are a different number of choice set items, it can be just one or few several dozen. And number of item in choice is over one thousand. In an extreme case, generated size of JSON is more than 10-15 MB.

So, is any way to put choices items in some kind of variable, and use them as a data source for all choice set? Some like sample data in AC designer:

 

 

 

 

{
    "type": "AdaptiveCard",
    "$data": {
        "properties": [
            {
                "key": "From",
                "value": "AAA"
            },
            {
                "key": "Received",
                "value": "BBB"
            },
            {
                "key": "File",
                "value": "CCC"
            }
        ]
    },
    "body": [
        {
            "type": "TextBlock",
            "size": "Medium",
            "weight": "Bolder",
            "text": "title"
        },
        {
            "type": "TextBlock",
            "text": "description",
            "wrap": true
        },
        {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "$data": "${properties}",
                    "title": "${key}",
                    "value": "${value}"
                }
            ],
            "placeholder": "Placeholder text"
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.4"
}

 

 

 

 

That code work fine in editor but when I send that by email I can select only ${key}.

Or maybe can I get data from outside the AC? What is the size limit for Outlook AC?

0 REPLIES 0

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,493)