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:
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!
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.