DEV Community

Discussion on: Use adaptive cards with mention in Microsoft Teams

 
kenakamu profile image
Kenichiro Nakamura

As long as I know, if you may log ticket from Microsoft 365 portal, which may requires some permission. If you cannot do it, you may want to find admin of the tenant to issue the ticket.

Thread Thread
 
task4233 profile image
task4233

I'll contact the admin of my community.
Thank you for that.

Thread Thread
 
jishwin13 profile image
jishwin13 • Edited

Hello, any update on this issue? I am also facing the same issue here. I cant find the orgid. Can anyone help? I am also getting such a b58f56fa8a54b578 from graph query just like @task4233 . Not even the content inside the "at" tags tags are displayed in the teams. Only the text is coming. Someone give me some pointers please?

Thread Thread
 
kenakamu profile image
Kenichiro Nakamura

I am also curious about this. Appreciate if anyone can share any findings!

Thread Thread
 
bmesft profile image
Andrew

Has anyone been able to figure this one out? I am getting the same issues as most here, the user "link" is blue, but there is no action or mention created. I checked that the id is correct by doing a mention and inspecting the page to make sure I was using the correct ID. I am just sending the adaptive card using a webhook.

Thread Thread
 
jonasbjoralt profile image
Jonas Bjøralt

Hi, I was able to get it to work by replacing the id with my email. Here's the full JSON:

{
    "type": "message",
    "attachments": [
      {
        "contentType": "application/vnd.microsoft.card.adaptive",
        "content": {
          "type": "AdaptiveCard",
          "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
          "version": "1.4",
          "body": [
            {
              "type": "ColumnSet",
              "columns": [
                {
                  "type": "Column",
                  "width": 2,
                  "items": [
                    {
                      "type": "TextBlock",
                      "text": "<at>John Doe</at> you should really see this.. ",
                      "wrap": true
                    }
                  ]
                }
              ]
            }
          ],
          "msteams": {
            "entities": [
              {
                "type": "mention",
                "text": "<at>John Doe</at>",
                "mentioned": {
                  "id": "john@example.com",
                  "name": "John Doe"
                }
              }
            ]
          }
        }
      }
    ]
  }

Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
nemopeti profile image
Kovács Péter

Save my day, that worked to me also with email address :)

Thread Thread
 
kenakamu profile image
Kenichiro Nakamura

I am glad to hear that!