Are Channel Mentions supported via Incoming Webhook Connectors?

Szewczyk, Dawid 31 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 <at>General</at>, this is the actual msg"  
                    }  
                ],  
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",  
                "version": "1.0",  
                "msteams": {  
                    "entities": [  
                        {  
                            "type": "mention",  
                            "text": "<at>General</at>",  
                            "mentioned": {  
                              "id": "NORMALLY I HAVE AN ID# HERE",  
                              "name": "General"  
                            }  
                          }  
                    ]  
                }  
            }  
        }]  
  
}  
Azure Bot Service
Azure Bot Service
An Azure service that provides an integrated environment for bot development.
594 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
6,722 questions
Microsoft Graph Teamwork API
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,092 questions
{count} vote

Accepted answer
  1. Meghana-MSFT 2,346 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 36 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