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 / Getting User name from...
Power Automate
Unanswered

Getting User name from Teams message

(0) ShareShare
ReportReport
Posted on by

Hi guys,

 

I'm building a flow which has the following structure:

It, will be triggered When Keyword it is mentioned in a chat

This Keyword will to popup an Adaptive Card in a IM within the the user that had used the keyword.

Flow.png

My issue is, I can't set it dynamically to get the user id which has used the trigger to add into the Adaptive Card recipient 

I've already tried to use:

<at>username@domain.com</at>

triggerbody()?['from']?['user']?['id']

 

but no luck

Categories:
I have the same question (0)
  • shreenet Profile Picture
    7 on at

    You can not directly get it from the response. Try in this way - 

    1. Add next action of Teams "Get message details" and pass MessageID (received in the first response) and other channel details.

    2. Add next action of Office365 "Search for users (V2)" and pass From User Display Name received in the above step.

    3. Now you can get email id of the person from the 2nd step mention above.

     

    So your flow should look like - 

     

    shreenet_0-1640246577497.png

     

  • leo85 Profile Picture
    609 on at

    Hi @ThiagoMesquita ,

    as @shreenet mentioned you cannot get it directly from the trigger.

    But you can make it still a little bit easier. Get the message details and then you can use the From User User ID to send the adaptive card. At least that worked for me.

     

    leo85_0-1640249707038.png

     

    Regards,

    Leo

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard