cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Teams - Adaptive Card - Mentions

Hi All,

 

I have been building an adaptive card to fire within Teams that would mention the user to help get their attention.  In the desktop version of Teams, everything works properly, however in the App version, I am not seeing the correct name.

 

Images and Code are included.  Any assistance would be great.

 

 

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.2",
    "body": [
        {
            "type": "Container",
            "style": "emphasis",
            "items": [
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "size": "Large",
                                    "weight": "Bolder",
                                    "text": "**Recall from Temporary Suspension of Services - {$root.Position}**",
                                    "wrap": true
                                }
                            ],
                            "width": "stretch"
                        }
                    ]
                }
            ],
            "bleed": true
        },
        {
            "type": "ColumnSet",
            "id": "MentionColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "id": "MentionColumn",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "id": "MentionTextBlock2",
                            "spacing": "None",
                            "isSubtle": true,
                            "wrap": true,
                            "text": "Dear <at>username</at>,"
                        }
                    ]
                }
            ]
        },
        {
            "type": "TextBlock",
            "text": "Placeholder text",
            "isSubtle": true,
            "wrap": true
        },
        {
            "type": "TextBlock",
            "spacing": "Small",
            "size": "Small"
        },
        {
            "text": "Placeholder text",
            "type": "TextBlock",
            "wrap": true
        },
        {
            "text": "Placeholder text",
            "type": "TextBlock",
            "wrap": true
        },
        {
            "type": "TextBlock",
            "isSubtle": true,
            "wrap": true,
            "text": "Placeholder text"
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "ActionSet",
                    "actions": [
                        {
                            "type": "Action.Submit",
                            "title": "Accept",
                            "style": "positive",
                            "data": {
                                "id": "_qkQW8dJlUeLVi7ZMEzYVw",
                                "action": "approve"
                            }
                        },
                        {
                            "type": "Action.ShowCard",
                            "title": "Reject",
                            "style": "destructive",
                            "card": {
                                "type": "AdaptiveCard",
                                "body": [
                                    {
                                        "type": "TextBlock",
                                        "isSubtle": true,
                                        "wrap": true,
                                        "text": "Placeholder text"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "isSubtle": true,
                                        "wrap": true,
                                        "text": "Placeholder text"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "isSubtle": true,
                                        "wrap": true,
                                        "text": "Placeholder text"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "isSubtle": true,
                                        "wrap": true,
                                        "text": "Placeholder text"
                                    },
                                    {
                                        "type": "Input.Text",
                                        "id": "RejectCommentID",
                                        "placeholder": "Please specify the reason for declining.",
                                        "isMultiline": true,
                                        "validation": {
                                            "necessity": "required",
                                            "errorMessage": "A reason for declining is required"
                                        }
                                    }
                                ],
                                "actions": [
                                    {
                                        "type": "Action.Submit",
                                        "title": "Send",
                                        "data": {
                                            "id": "_qkQW8dJlUeLVi7ZMEzYVw",
                                            "action": "reject"
                                        }
                                    }
                                ],
                                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
                            }
                        }
                    ]
                }
            ]
        }
    ],
    "msteams": {
        "entities": [
            {
                "type": "mention",
                "text": "<at>username</at>",
                "mentioned": {
                    "id": "8:orgid:{$root.id}",
                    "name": "{$root.Name} {$root.Surname}"
                }
            }
        ]
    },
    "selectAction": {
        "type": "Action.OpenUrl",
        "url": "https://www.brampton.ca/EN/residents/Recreation/Documents/Recall-Temporary-Suspension-of-Services-APSIGNED.pdf"
    }
}

 

Annotation 2020-08-05 083955.pngAnnotation 2020-08-05 084037.png

 

Sean

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Teams - Adaptive Card - Mentions

Hi @cdn4lf,

 

Sorry, I couldn't reproduce the issue, you could consider asking for help from support:

https://asia.flow.microsoft.com/en-us/support/

Annotation 2020-08-10 134923.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Teams - Adaptive Card - Mentions

Hi @cdn4lf,

 

Maybe it is a temporary issue, I tested that the adaptive card you provided on my side but not find the same issue:

Annotation 2020-08-07 112339.jpg

Please let me know if your Flow still exists this issue. 

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper III
Helper III

Re: Teams - Adaptive Card - Mentions

@v-litu-msft 

 

This issue still exists and only presents as a problem in android. iOS, desktop and web are not issues. 

Highlighted
Community Support
Community Support

Re: Teams - Adaptive Card - Mentions

Hi @cdn4lf,

 

Sorry, I couldn't reproduce the issue, you could consider asking for help from support:

https://asia.flow.microsoft.com/en-us/support/

Annotation 2020-08-10 134923.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (3,467)