AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[Rendering] Teams adaptive cards can not be displayed

Open ManuelaCarreno opened this issue 3 years ago • 1 comments

Target Platforms

UWP

SDK Version

Latest

Application Name

Microsoft Teams

Problem Description

I made a Power automate flow which sends an adaptive card to some users, some users can access the card and make the actions we expect them to do however some other can not access and present some troubles when they want to access the card. The issue is not presented with everyone but just with a few ones. I attach the screen of how the issue is shown on Teams.

Screenshots

screen teams

Card JSON

"type": "AdaptiveCard",
    "body": [
        {
            "type": "TextBlock",
            "wrap": true,
            "text": "360-Feedback",
            "id": "1",
            "size": "extraLarge",
            "color": "accent"
        },
        {
            "type": "TextBlock",
            "text": "Hello @{outputs('Obtener_elemento')?['body/EEName']}! It is time to start your Feedback-360!",
            "wrap": true,
            "maxLines": 10
        },
        {
            "type": "TextBlock",
            "text": "The objective of this process is to do a quick review with your main stakeholders about your performance in relation to SOL behaviors and to have insights for an impact conversation with your Line Manager and a robust development plan. ",
            "wrap": true,
            "maxLines": 10
        },
        {
            "type": "TextBlock",
            "text": "To nominate the people who will answer your Feedback-360, click the button below. You can nominate from 3 to 7 people, among whom you should consider your direct boss, as well as the leaders of the projects in which you worked in the last three months (in case of belonging to one or more squads, please consider the initiative owners).",
            "wrap": true,
            "maxLines": 10
        },
        {
            "type": "TextBlock",
            "text": "Take this opportunity to accelerate your development!",
            "wrap": true,
            "maxLines": 4,
            "color":"attention"
        },
                {
            "type": "TextBlock",
            "text": "UNA Coach",
            "wrap": true,
            "maxLines": 10,
            "color": "accent"
        },   
        {
            "type": "ActionSet",
            "actions": [
                {
                    "type": "Action.ShowCard",
                    "title": "Nominate",
                    "card": {
                        "type": "AdaptiveCard",
                        "body": [
                            {
                                "type": "Input.Text",
                                "placeholder": "Nominee Email 1 (Line Manager)",
                                "id": "2",
                                "isRequired": true,
                                "errorMessage": "Please enter a valid email",
                                "label": "- Nominee 1 (Line Manager)",
                                "style": "Email"
                            },
                                    {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Line Manager",
                    "value": "Line Manager"
                }
            ],
            "placeholder": "Select the role",
            "id": "7",
            "isRequired": true,
            "errorMessage": "Select the role",
            "spacing": "Small",
            "label": "Select the role"
        },
                            {
                                "type": "Input.Text",
                                "placeholder": "Nominee Email 2",
                                "id": "3",
                                "isRequired": true,
                                "errorMessage": " Please enter a valid email",
                                "label": "- Nominee 2",
                                "style": "Email"
                            },
                                    {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Peer",
                    "value": "Peer"
                },
                {
                    "title": "Squad member",
                    "value": "Squad member"
                },
                {
                    "title": "Stakeholder",
                    "value": "Stakeholder"
                },
                {
                    "title": "Sherpa/Guía",
                    "value": "Sherpa/Guía"
                },
                {
                    "title": "Initiative owner",
                    "value": "Initiative owner"
                },
                {
                    "title": "Other",
                    "value": "Other"
                }
            ],
            "placeholder": "Select the role",
            "id": "8",
            "isRequired": true,
            "errorMessage": "Select the role",
            "spacing": "Small",
            "label": "Select the role"
        },
                            {
                                "type": "Input.Text",
                                "placeholder": "Nominee Email 3",
                                "id": "4",
                                "isRequired": true,
                                "errorMessage": "Please enter a valid email",
                                "label": "- Nominee 3",
                                "style": "Email"
                            },
                                    {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Peer",
                    "value": "Peer"
                },
                {
                    "title": "Squad member",
                    "value": "Squad member"
                },
                {
                    "title": "Stakeholder",
                    "value": "Stakeholder"
                },
                {
                    "title": "Sherpa/Guía",
                    "value": "Sherpa/Guía"
                },
                {
                    "title": "Initiative owner",
                    "value": "Initiative owner"
                },
                {
                    "title": "Other",
                    "value": "Other"
                }
            ],
            "placeholder": "Select the role",
            "id": "9",
            "isRequired": true,
            "errorMessage": "Select the role",
            "spacing": "Small",
            "label": "Select the role"
        },
                                                        {
                                "type": "Input.Text",
                                "placeholder": "Nominee Email 4",
                                "id": "5",
                                "errorMessage": "Please enter a valid email",
                                "label": "- Nominee 4",
                                "style": "Email"
                            },
                                    {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Peer",
                    "value": "Peer"
                },
                {
                    "title": "Squad member",
                    "value": "Squad member"
                },
                {
                    "title": "Stakeholder",
                    "value": "Stakeholder"
                },
                {
                    "title": "Sherpa/Guía",
                    "value": "Sherpa/Guía"
                },
                {
                    "title": "Initiative owner",
                    "value": "Initiative owner"
                },
                {
                    "title": "Other",
                    "value": "Other"
                }
            ],
            "placeholder": "Select the role",
            "id": "10",
            "errorMessage": "Select the role",
            "spacing": "Small",
            "label": "Select the role"
        },
                                                        {
                                "type": "Input.Text",
                                "placeholder": "Nominee Email 5",
                                "id": "6",
                                "errorMessage": "Please enter a valid email",
                                "label": "- Nominee 5",
                                "style": "Email"
                            },
                                    {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Peer",
                    "value": "Peer"
                },
                {
                    "title": "Squad member",
                    "value": "Squad member"
                },
                {
                    "title": "Stakeholder",
                    "value": "Stakeholder"
                },
                {
                    "title": "Sherpa/Guía",
                    "value": "Sherpa/Guía"
                },
                {
                    "title": "Initiative owner",
                    "value": "Initiative owner"
                },
                {
                    "title": "Other",
                    "value": "Other"
                }
            ],
            "placeholder": "Select the role",
            "id": "11",
            "errorMessage": "Select the role",
            "spacing": "Small",
            "label": "Select the role"
        },
                                                        {
                                "type": "Input.Text",
                                "placeholder": "Nominee Email 6",
                                "id": "12",
                                "errorMessage": "Please enter a valid email",
                                "label": "- Nominee 6",
                                "style": "Email"
                            },
                                    {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Peer",
                    "value": "Peer"
                },
                {
                    "title": "Squad member",
                    "value": "Squad member"
                },
                {
                    "title": "Stakeholder",
                    "value": "Stakeholder"
                },
                {
                    "title": "Sherpa/Guía",
                    "value": "Sherpa/Guía"
                },
                {
                    "title": "Initiative owner",
                    "value": "Initiative owner"
                },
                {
                    "title": "Other",
                    "value": "Other"
                }
            ],
            "placeholder": "Select the role",
            "id": "13",
            "errorMessage": "Select the role",
            "spacing": "Small",
            "label": "Select the role"
        },
                                                        {
                                "type": "Input.Text",
                                "placeholder": "Nominee Email 7",
                                "id": "14",
                                "errorMessage": "Please enter a valid email",
                                "label": "- Nominee 7",
                                "style": "Email"
                            },
                                    {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Peer",
                    "value": "Peer"
                },
                {
                    "title": "Squad member",
                    "value": "Squad member"
                },
                {
                    "title": "Stakeholder",
                    "value": "Stakeholder"
                },
                {
                    "title": "Sherpa/Guía",
                    "value": "Sherpa/Guía"
                },
                {
                    "title": "Initiative owner",
                    "value": "Initiative owner"
                },
                {
                    "title": "Other",
                    "value": "Other"
                }
            ],
            "placeholder": "Select the role",
            "id": "15",
            "errorMessage": "Select the role",
            "spacing": "Small",
            "label": "Select the role"
        }
                        ],
                        "actions":[
                            {
                            "type": "Action.Submit",
                            "title": "Confirm nominees"
                            }
                        ]
                    }
                },
                {
                    "type": "Action.Submit",
                    "title": "Cambiar a español",
                    "id": "ESP"
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5"
}

Sample Code Language

No response

Sample Code

No response

ManuelaCarreno avatar Aug 10 '22 18:08 ManuelaCarreno

Looks like you are sending a 1.5 version of an adaptive card to Teams while the platform only supports versions up to 1.4 https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#adaptive-card Try lowering that number to 1.4 or 1.3 in your JSON and try again

Toleikis avatar Aug 11 '22 06:08 Toleikis

@Toleikis is correct. If this doesn't resolve your issue, please file a new issue here: https://github.com/MicrosoftDocs/msteams-docs

paulcam206 avatar Aug 15 '22 19:08 paulcam206