Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Get link to a specific message in teams

(0) ShareShare
ReportReport
Posted on by 155

Hello , is iet possible to get a link of a specific teams message? 

 

I created a  first flow . When an item is created in powerapps => postmessage in teams with a title composed in Powerapps. 

 

I created a second flow. When in powerapps a field has the value "4" it triggers a flow to alert the mangement with a message. I want to add the link of the message inserted. 

 

The steps i already have are: 

 

  1. get messages  ( from a teams  and specific channel
  2. Condition: ask in powerapps ( gallery1.selected.title ) contiens topic this "filters " the message in that channel so i have only that one message left with that exact title posted before
  3. post message as flow-bot to an user: here I want to add the link of that "filtered" teams message so they can click on it and they can follow the message instantly.  
  • ShameerD Profile Picture
    10 on at
    Re: Get link to a specific message in teams

    Hi,

     

    I was using it to send an email, so I just got the bits of my link and then added the message id where I found it in the link and it works.

     

    Linkinfo@{triggerBody()?['id']}morelinkinfo@{triggerBody()?['id']}morelinkinfo@{triggerBody()?['id']}

     

  • Patrick Hess Profile Picture
    on at
    Re: Get link to a specific message in teams

    Stijn007,

     

    I can't see what you have in your Compose steps but it looks like you still have to call an actual Message ID. These triggerBody()?['id'] evocations need to link to some variable in the logic of your Flow, it doesn't look like you're doing that yet.

     

    You may have noticed in the linked post how the three Compose steps were split up because the Message ID was intentionally excluded. This is crucial because the Message ID is a dynamic variable, whereas the rest of the link is static.

     

    The expression should probably be more like this...

     

    concat(outputs('Opstellen'),triggerBody()?['Message id'],outputs('Opstellen_2'),triggerBody()?['Message id'],outputs('opstellen')triggerBody()?['Message id'])

     

    Note that I'm using 'Message id' because that should be the name of the dynamic variable you instantiate from the Get Messages step earlier in the Flow. You should be able to just plug that into your Concat() function and get this working. You could otherwise use Initialize Variable to import the Message ID, sometimes that works better.

     

    I hope this helps!

     

    Patrick

  • Stijn007 Profile Picture
    155 on at
    Re: Get link to a specific message in teams

    Hello, 

     

    I tried to get the link with like this but the problem is he doesn't get the "ID" 

    FLow proces is like this: 

     

    Triggered in PowerApps ( severity of an incident is set to 4)

    Gets all messages of a channel

    Condition to filter the messages based on titel of the incident. ( chequed in Powerappss by gallery.selected.Titel_incident)

    use the 4 composes

    Expresission of the 4th compose doesn't get me the ID. 

    concat(outputs('Opstellen'),triggerBody()?['id'],outputs('Opstellen_2'),triggerBody()?['id'],outputs('opstellen')triggerBody()?['id'])

     

    Stijn007_0-1596622029999.pngStijn007_1-1596622126629.png

     

  • Patrick Hess Profile Picture
    on at
    Re: Get link to a specific message in teams

    Stijn007,

     

    There isn't a great way to do this currently with the available connectors, we even have some open ideas out there for it:

    https://powerusers.microsoft.com/t5/Power-Automate-Ideas/I-want-to-get-ID-of-a-message-with-specific-title-of-Teams/idi-p/582051

     

    There's some good guidance on how to approach this here:

    https://powerusers.microsoft.com/t5/Building-Flows/Link-to-a-specific-message-in-Teams/m-p/184233

     

    In brief, you can use dynamic content to pull in results from when you get a message, use Compose to establish the components of your link and then use the Concat() function to put them all together for you to send out. Note that you may have to go over other links in your channel to look for conventions to help you build out your links.

     

    I encourage you to upvote the linked idea or submit one of your own, as well!

     

    Regards,

    Patrick

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1