I have a Flow using the "Post a message as the Flow bot to a channel" action. The message includes a dynamic hyperlink to the selected file in SharePoint "itemUrl". The Flow posts a message successfully to Teams with a clickable hyperlink.
However, when I add HTML styling (color and font-size) to the message to draw channel members' attention, the hyperlink is rendered as plain text. Is there a way to have this flow's message with styled (large, color specified) to get viewers' attention AND for the file hyperlink to be clickable so they can go directly to the file to see it?
Flow without specified style on text:
Resulting message in Teams: clickable link:
Flow with specified style (font-size and font color):
Resulting message in Teams: plain text of the url.
Solved! Go to Solution.
I finally got it working! I rewrote it using the Post a Message (v3) action as you did. I think the key may have been immediately switching the </> button in the message editor on before adding any content.
Edit mode and results below.
I want to say that this action does not accept HTML formatting, but uses Markdown: aka.ms/approvaldetails is a good resource with how it works, examples of syntax.
If they’re using HTML now, it maybe be an “all or nothing” issue. That, once you use your own, it doesn’t do anything automatically anymore. In which case: <a href=‘link’>link(or friendlier text)</a>
Thanks for the markdown reference, @vhughes. The <a href = 'link'> format generates the Url but it is not clickable; it's just plain text. I also tried using the action "Post a Message (v3)" with same results.
I checked one of my flows that uses “Post a message v3” and realized it uses double quotes instead of single:
careful not to put spaces around the equal sign
Thanks again for the reply, @vhughes. I tried using the Post a Message (v3) action using the <a href=" "> formatting using double quotes and it just added double quotes around the plain text of the link referenced.
Hmm. Weird. Could you share a screen shot of the edit view of the action, please?
I finally got it working! I rewrote it using the Post a Message (v3) action as you did. I think the key may have been immediately switching the </> button in the message editor on before adding any content.
Edit mode and results below.
Excellent! Woohoo!
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
53 | |
40 | |
38 | |
38 | |
35 |
User | Count |
---|---|
76 | |
73 | |
71 | |
52 | |
49 |