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 / Get link to a specific...
Power Automate
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.  
Categories:
I have the same question (0)
  • Patrick Hess Profile Picture
    on at

    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

  • Stijn007 Profile Picture
    155 on at

    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

    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

  • ShameerD Profile Picture
    10 on at

    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']}

     

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