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 / Send an email that inc...
Power Automate
Unanswered

Send an email that includes the link, when a new message is added in Microsoft Teams

(0) ShareShare
ReportReport
Posted on by 16

Hi All, I've successfully created a flow to send an email to my team when a message is posted.

But is it possible to include the URL to the teams message in the email as well?

Currently the body of the email only includes the name of the sender; importance; and the body of the message.

I'm hoping it can also include the direct link to the teams chat; please help! 🙂

Categories:
I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @romey2000 

     

    View the Message Outputs

    If you insert the Message dynamic content from the When a new channel message is added action and run a test, you can view the outputs of what is returned.

    creativeopinion_1-1695314943832.png

     

    The link to the message can be accessed using the webUrl key. 

     

    creativeopinion_0-1695314835877.png

     

    Get the Message URL

    Insert another Compose action. Insert an expression, type in a question mark, square brackets and single quotes.

    ?['']

     

    In between the single quotes, enter the key. In this case, it's webUrl. You must ensure the text matches the key. 

    creativeopinion_3-1695315083933.png

    Place your cursor at the start of the expression. Tip: Press the up arrow key. 

     

    Select the Message dynamic content.

    creativeopinion_7-1695315155558.png

     

    Run a test. This will return your URL. You can use this in your email now. 

     

    Add Link to Email

    Highlight your link text in the Send an Email (V2) action, click on the link button. You won't be able to select the dynamic content here. Enter any text (this is just temporary) into the Link Target field and press add.

     

    creativeopinion_0-1695315273468.png

     

    Click the Code View button. 

     

    creativeopinion_1-1695315332433.png

     

    Highlight the text you entered for the Link Target (it will be the text between the double-quotes). Insert the Outputs from the Compose action that is holding your message URL. 

     

    creativeopinion_2-1695315360268.png

    Should look like this.

     

    creativeopinion_8-1695315201470.png

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉Watch my tutorials on YouTube
    👉Tips and Tricks on TikTok

     

  • romey2000 Profile Picture
    16 on at

    thank you!

  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @romey2000 If my solution helped you and solved your problem. Please mark it as a solution so others who may have the same question as you can find it! Thx!

  • romey2000 Profile Picture
    16 on at

    sorry I spoke too soon and have spent way too many hours trying to figure this out - seems like there should be a simpler solution! lol

    This is a new flow that I tried to create...

    romey2000_0-1695413967716.png

     

    The email produces this... any idea why? The hyperlink points to the URL for the channel...

    romey2000_1-1695414047513.png

     

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