Forum Discussion

SHDeveloper's avatar
SHDeveloper
Copper Contributor
Jun 06, 2022

Adaptive Card Width issue for @Mention Tags

I have an adaptive card being published to a team channel using power automate with 

"msteams": {
"width": "Full"
}

 specified in the structure. If I pass just the users name and other details the card renders properly to the maximum width. However if I add a tag (@mentions) - the card collapses to the default width. I have tried to use both the <at> tag as well as the "Get @mention token for user" action. Both have the same result.

Any suggestions on how I can get the full width and the tag?

 

  • I was able to solve it by specifying the details in entities section instead of using a direct at tag or "Get @mention token for user" action
    "msteams": {
    "width": "Full",
    "entities": [
    {
    "type": "mention",
    "text": "<at>...</at>",
    "mentioned":
    {
    "id": "....",
    "name": "...."
    }
    }
    ]
  • SHDeveloper's avatar
    SHDeveloper
    Copper Contributor
    I was able to solve it by specifying the details in entities section instead of using a direct at tag or "Get @mention token for user" action
    "msteams": {
    "width": "Full",
    "entities": [
    {
    "type": "mention",
    "text": "<at>...</at>",
    "mentioned":
    {
    "id": "....",
    "name": "...."
    }
    }
    ]
  • This is a known issue, we already have a bug created for this. We will let you know once the bug is fixed.

    Thanks

Resources