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 / Using a Teams Message ...
Power Automate
Unanswered

Using a Teams Message to Send a Email

(0) ShareShare
ReportReport
Posted on by

Hey all,

I'm trying to leverage Teams and Flow to automatically send emails to our ticketing system when someone posts a message to a designated Channel. 

 

So far everything has worked as intended, except one part. I'd like to use the email address of the person posting the message to be in the From field of the email. 

I've tested using the Teams Dynamic Content, but none seem to work as it's not formatted as string/email:

Brandonbou_0-1603389878766.png

Would anyone know how to go about doing this?

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @Anonymous 

    You can use the "Get user profile (V2)" action to get the email of the user that posted the message in Teams:

    userid.png

     

    As you can see, I'm using the action "send an email from a shared mailbox (v2)", since it's the only way to send an email in name of somebody else. You will need permissions to access the user mailbox, because if you haven't, you won't be allowed to send the email.

    Just remember that the flow is executed using your account and context information.

     

    Hope it helps!

    Ferran

  • Paulie78 Profile Picture
    8,422 Moderator on at

    Like this:

     

    FlowUsername.PNG

     

    The output of the "Get user profile" action will give you the email address (and much more besides)

  • AmmarK Profile Picture
    4 on at

    The issue is the flow creator\owner must be able to send emails on behalf of the MS Team message sender. (Send on behalf the "Mail")

  • AmmarK Profile Picture
    4 on at

    The issue is the flow creator\owner must be able to send emails on behalf of the MS Team message sender. (Send on behalf the "Mail")

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