I cannot get Power Automate Flow to post a message with clickable links in Teams messages when the path is a Dynamic path. I tried all these methods described in this post:
A. <a href = "https://blahblah:"> text of link </a>
B. [text of link](https://blahblah)
C. When editing the message card, click the </> icon to switch to "code view" to get HTML to work as HTML.
D. Add Link in message with expression as destination: concat('<a href="',triggerOutputs()?['body/{Link}'],'">',triggerOutputs()?['body/Title'],'</a>')
The first method works fine if you hard-code in a static path, but I need the path to be dynamic. I want to choose one of the options such as "Item Url" or "Link to item". Is there a way to get messages from Flow to post an HTML formatted, clickable link to Teams? I really need this to make the solution usable. Thanks!
Result of flow: un-clickable link
Flow Message card
I have tested the scenario that you have shared and that is working super fine for me as expected.
Below are the steps that I have followed.
--> Created a flow with manual trigger and added an input action to the flow so that I can specify the URL
--> Added the teams POST MESSAGE action and clicked on the </>(html view) symbol on the body this will open the html editor here you will see some tags by default, remove all of them and then specify the text that you need.
--> I used the <a href='"></a> method to populate the hyperlink and that worked super fine for me.
Snippet of the flow created and teams message
If the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved.
Thanks for your reply, @Gopala_Krishna! I got the message posting with a dynamic path and a clickable link in Teams by using the action Post a message as the Flow bot to a Channel.
@Allie_B can you post your final solution? I am having the same issue creating a dynamic clickable link in a Teams chat message. I tried @Gopala_Krishna solution but all I get is a underlined link not clickable.
I found that if I switched back out of HTML view after adding the dynamic link it blew up. Looks like the editor was trying to fix what it saw as bad code. Had to leave t in HTML view for link to work.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
13 | |
10 | |
9 | |
6 | |
6 |
User | Count |
---|---|
21 | |
20 | |
17 | |
8 | |
8 |