microsoft / microsoft/AdaptiveCards

[Rendering] Mentions in Teams Message Extension do not work

Open
#8,961 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Platforms

Other

SDK Version

Cards: 3.1.0, Templating: 1.5.0, Expressions: 4.22.7

Application Name

Microsoft Teams

Problem Description

When viewing Mentions via an adaptive card in a message extension, the mentions do not render correctly. Instead the render with Name. This only appears to happen in the web/desktop version of Teams, as mobile still works correctly.

Screenshots

image

Card JSON
{
    "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "TextBlock",
            "text": "<at>Adele Vance</at>, <at>Isaiah Langer</at>, <at>Kallen (Stadtfeld) Kozuki</at>"
        }
    ],
    "msteams": {
        "entities": [
            {
                "type": "mention",
                "text": "<at>Adele Vance</at>",
                "mentioned": {
                    "id": "<entraId>",
                    "name": "Adele Vance"
                }
            },
            {
                "type": "mention",
                "text": "<at>Isaiah Langer</at>",
                "mentioned": {
                    "id": "<entraId>",
                    "name": "Isaiah Langer"
                }
            },
            {
                "type": "mention",
                "text": "<at>Kallen (Stadtfeld) Kozuki</at>",
                "mentioned": {
                    "id": "<entraId>",
                    "name": "Kallen (Stadtfeld) Kozuki"
                }
            }
        ]
    }
}
Sample Code Language

No response

Sample Code

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the supplied Adaptive Card JSON to reproduce the mention rendering in Microsoft Teams message extensions, comparing web/desktop behavior with mobile. Done means the named mentions render correctly instead of showing the ... markup; the issue does not mention a source file or test to start from.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.