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"
}
}
]
}
}
}]
}