web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to format link pro...
Power Automate
Answered

How to format link properly in Create HTML table in Ms flow?

(2) ShareShare
ReportReport
Posted on by 41

Hi,

 

I am trying to create an html table with one column having link to the opportunity. This table I am using in sending emails. 

But there is an issue with the anchor tag as it is not appearing as it must appear. I am stuck at this point an its been two days I have searched here and there to get some help but still stuck here.

 

Please help. How can I see the link as normally anchor tag show. See below image for your reference.

41.PNG

Categories:
I have the same question (0)
  • Verified answer
    InterestedBloke Profile Picture
    64 on at

    Hey Waleed,

    This is something I've been patiently waiting for, but it's still not there.
    You can vote for the idea here.

    As for the workaround I've found for this, it's a bit complex at first, but it works nicely:HTML table Flow.png

    • Create HTML table as you have with the <a href="...
    • Create Compose 1

     

     

     

    replace(body('HTML_Table'),'&lt;a href=&quot;','<a href="')

     

     

     

    • Create Compose 2

     

     

     

    replace(outputs('Compose1'),'&quot;&gt;','">')​

     

     

     

    • Create Compose 3

     

     

     

    replace(outputs('Compose2'),'&lt;/a&gt;','</a>')​

     

     

     

    • (optional) Create Compose action called "Style" to format your table (i use the below formatting that i stole from a colleague, but you can create your own here)

     

     

     

    <style>
    body, p {font-family:"Calibri",sans-serif; font-size: 11pt}
    table { background:white;border-collapse:collapse }
    th {border:solid white 1.0pt; background:#106EBE;padding:1.45pt 3.6pt 1.45pt 3.6pt; color: white}
    td { border-top:none;border-left:none;border-bottom:solid white 1.0pt;border-right:solid white 1.0pt;padding:1.45pt 3.6pt 1.45pt 3.6pt;box-sizing: border-box }
    a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline; }
    a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;}
    </style>​

     

     

     

    • Create "Send an email" action that's not version2 - important as it has to be HTML.
      • Or i think it might even work with version2 if you switch to the HTML type
      • (optional) start e-mail with the output from "Style"
    • Insert output from Compose 3 where you want your table to be
  • PowerPat Profile Picture
    94 on at

    hi, i have only send email V2 ... but no works for me ? my email has always a href="

  • InterestedBloke Profile Picture
    64 on at

    Hey PowerPat,

    The above might no longer be relevant with the (V2) connector - it was for Send an Email (V1).

    However, you might still be able to follow the same steps if you toggle the HTML code on 

    InterestedBloke_1-1598256982705.png


    Or there might be an easier option - don't know as i haven't played around with this recently.


  • zylantha2 Profile Picture
    103 on at

    You can nest the replace() functions in the one operation, saving actions and making your flow much more readable.  Here's how I did it using three nested calls:

    replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&quot;','"')
  • SvampK Profile Picture
    16 on at

    Got into this thread and found some other solution in this blog with prue HTML:

    https://www.aerieconsulting.com/blog/how-to-sending-tables-in-flow-email-with-link-to-items

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @InterestedBloke ! i am getting this do you have any idea about this issue

     

     

    Rafia1_2-1658227047794.png

     

  • InterestedBloke Profile Picture
    64 on at

    @Anonymous No clue, I'm afraid.
    This is over 3 years old so it's very likely that some things were updated. 
    I'd encourage you to try other options at this point 🙂 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 598

#2
Valantis Profile Picture

Valantis 477

#3
Vish WR Profile Picture

Vish WR 370

Last 30 days Overall leaderboard