cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Allie_B
Frequent Visitor

Flow does not generate clickable links for dynamic paths

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 linkResult of flow: un-clickable linkFlow Message cardFlow Message card

4 REPLIES 4
Gopala_Krishna
Super User
Super User

@Allie_B 

 

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 

Gopala_Krishna_0-1610204203634.pngGopala_Krishna_1-1610204242024.png

 

If the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved.

 

Allie_B
Frequent Visitor

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.

spitch
New Member

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. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,330)