Image in Adaptive card inside Action.ShowCard button in showing undefined

Viewed 331

I have an Adaptive card the code is below. The problem I am facing is The card that will be displayed after clicking the Action.ShowCard button can not render Image. It says undefined. The same image gets displayed when I use it in a normal card. I think it cannot render the image that is in the card of the button. To test it you can copy the code in your App Studio's UI Tool and click Send me this card

Screen shot of what I get

enter image description here

Main code

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
    ],
    "actions":[
        {
            "type": "Action.ShowCard",
            "title": "Action.ShowCard",
            "card": {
                "type": "AdaptiveCard",
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "version": "1.2",
                "msteams": {
                    "entities": []
                },
                "body": [
                    {
                        "type": "ColumnSet",
                        "columns": [
                            {
                                "type": "Column",
                                "width": "auto",
                                "items": [
                                    {
                                        "type": "Image",
                                        "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Image_created_with_a_mobile_phone.png/1200px-Image_created_with_a_mobile_phone.png",
                                        "size": "Small"
                                    }
                                ]
                            },
                            {
                                "type": "Column",
                                "width": "stretch",
                                "items": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Color theorysdjkf",
                                        "wrap": true,
                                        "weight": "Bolder",
                                        "color": "Attention"
                                    }
                                ],
                                "verticalContentAlignment": "Center"
                            }
                        ],
                        "height": "stretch",
                        "horizontalAlignment": "Center",
                        "separator": true,
                        "spacing": "Large"
                    },
                    {
                        "type": "TextBlock",
                        "wrap": true,
                        "spacing": "Small",
                        "text": "You selected **A**"
                    },
                    {
                        "type": "ColumnSet",
                        "columns": [
                            {
                                "type": "Column",
                                "width": "stretch",
                                "items": [
                                    {
                                        "type": "TextBlock",
                                        "wrap": true,
                                        "text": "This is a long explanation for the answer and I think it is getting so long  and long and long long long long "
                                    }
                                ]
                            }
                        ],
                        "style": "emphasis",
                        "spacing": "Small"
                    }
                ]
            },
            "style": "positive"
        }
    ]
}
2 Answers

Looks like it is a platform issue. We have raised a bug for it. We will let you know once it is resolved. Thanks!!

I tried base64 encoding the image (and tried a very small minified version - 23k), but that also failed. It looks like a bug to me. There are several Microsoft people here on Stack Overflow so they'll pick this up and feed it back if they can repro it (which they should have no trouble doing).

Related