Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Get link to a specific message in teams

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.  



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:


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!






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. 







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!



Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,188)