web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to mention user...
Power Automate
Unanswered

Unable to mention user from Incoming Webhook

(0) ShareShare
ReportReport
Posted on by 4
"type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "contentUrl": null, "content": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", "body": [ { "type": "TextBlock", "text": "Hello <at>User Name</at>" } ], "msteams": { "entities": [ { "type": "mention", "text": "<at>User Name</at>", "mentioned": { "id": "29:[User ID from Graph Explorer]", "name": "User Name" } } ] } } } ] }

 

This does post the message and the user name highlights blue as if it is a mention but it isn't actually linking to the user. If you hover the name it doesn't show the popover with user info and it doesn't cause an entry to be added to your activity feed. It doesn't matter what id I put in the mention, the behavior is always the same.

 

I have seen multiple similar posts about this saying you have to use a "8:orgid:" or "9:", or "29:" with the ID but no combination I try seems to work. What am I missing here and why is this so complicated?

I have set up an Incoming Webhook for a channel in Teams and I am trying to send a message via curl to the webhook to display a message and tag a user. Here is my curl request:

 

curl.exe -H "Content-Type:application/json" -d [insert json here] https://company.webhook.office.com/webhookb2/[redacted] 

 

And I am using the following json:

 

{ 
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @kl-nkamenar :

    Your could try:

    vbofengmsft_0-1628822899051.png

    The Result:

    vbofengmsft_1-1628822948994.png

    Best Regards,

    Bof

     

     

  • kl-nkamenar Profile Picture
    4 on at

    I don't know what that interface is or where I would access it to be honest. I am simply trying to send a curl request via command line to an Incoming Webhook I added to one of our Teams channels. I am trying to figure out how to modify the JSON above to properly mention a user.

  • v-bofeng-msft Profile Picture
    on at

    Hi @kl-nkamenar :

    I tested it many times and found that the results obtained by using the "Post adaptive card in a chat or channel" action and Webhook are different even if the content is the same. The former mention is valid and the latter will encounter the problems you mentioned:

    vbofengmsft_0-1628837033336.png

    vbofengmsft_1-1628837072908.png

    The Result 

    vbofengmsft_0-1628837234178.png

     

    I suggest you use "Post adaptive card in a chat or channel" action or the "Post Message" action I mentioned earlier instead of webhook

    Best Regards,

    Bof

     

     

     

     

  • kl-nkamenar Profile Picture
    4 on at

    I am not sure what that interface is or where I could access that? I am just trying to write a script that I can run from a command prompt that will send a message to one of our teams channels with a user mention in it.

  • v-bofeng-msft Profile Picture
    on at

    Hi @kl-nkamenar :

    It is power automate:

    https://asia.flow.microsoft.com/en-us/

    Best Regards,

    Bof

  • Steve_Lutz Profile Picture
    2 on at

    In your adaptive card example you have a line that starts "id": 8:ordid:7a...id",
    It is blurred so that you don't give out that information.  Are "id" and "ordid" the only data pairs in that are in that line? 
    How do I get the id and ordid? Where are they found?
    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard