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:
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.
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
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.
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:
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
stampcoin
107
Michael E. Gernaey
90
Super User 2025 Season 1
David_MA
62
Super User 2025 Season 1