Are Channel Mentions supported via Incoming Webhook Connectors?

Szewczyk, Dawid 36 Reputation points
2022-04-20T07:57:37.79+00:00

Hey!

TL:DR: While posting to Incoming Webhook Connectors messages with @mentions of a Channel ID, the message goes through but the mentioned channel is not linked to anything and doesn't trigger notifications to users of that channel.

I have used relevant Dev Docs to send messages with Adaptive Cards against Incoming Webhook Connectors (dev docs: https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cconnector-html#user-mention-in-incoming-webhook-with-adaptive-cards)

The solution works for Ms Team Users but as soon as I move to Channel Ids it is not working as expected - as in the notifications are not send and the channel name is not a pseudo link I could hover over to see some details.

This link shows how I'm getting the channel id: https://www.c-sharpcorner.com/blogs/how-to-fetch-the-teams-id-and-channel-id-for-microsoft-teams

sample msg:

    {  
        "type": "message",  
        "attachments": [  
            {  
            "contentType": "application/vnd.microsoft.card.adaptive",  
            "content": {  
                "type": "AdaptiveCard",  
                "body": [  
                    {  
                        "type": "TextBlock",  
                        "size": "Medium",  
                        "weight": "Bolder",  
                        "text": "ALERT TITLE"  
                    },  
                    {  
                        "type": "TextBlock",  
                        "text": "Hi , this is the actual msg"  
                    }  
                ],  
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",  
                "version": "1.0",  
                "msteams": {  
                    "entities": [  
                        {  
                            "type": "mention",  
                            "text": "",  
                            "mentioned": {  
                              "id": "NORMALLY I HAVE AN ID# HERE",  
                              "name": "General"  
                            }  
                          }  
                    ]  
                }  
            }  
        }]  
  
}  
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,154 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,714 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,886 questions
{count} votes

Accepted answer
  1. Meghana-MSFT 3,786 Reputation points Microsoft Vendor
    2022-04-21T05:34:03.797+00:00

    We got the below response from the engineering team -

    Currently only user mention is supported in Incoming webhook. In general, mentioning a channel via payload is not supported yet in both Incoming Webhook and Bot.

    Thanks,
    Meghana


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. rickyparallo 46 Reputation points
    2022-07-27T03:08:14.747+00:00

    Have a look at this here, this guy seems to have got it working. I can't get it working though, just shows as plain text with no notifications.

    https://powerusers.microsoft.com/t5/Building-Flows/Channel-Teams-mention-in-Adaptive-Cards/m-p/1444535/highlight/true#M162055

    0 comments No comments