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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating Hyperlinks in...
Power Automate
Suggested Answer

Creating Hyperlinks in a HTML Table

(2) ShareShare
ReportReport
Posted on by 12
Hello, I have been trying to create a flow that sends a list of events pulled from a sharepoint list periodically. This would create a table of the events in date order, and then have links to each sharepoint item. What I want to do is have the name of the event be the link, but I keep running into an issue. Power Automate is fine when the name of the hyperlink is "Link" but doesn't like it when it is dynamic content. The below images show where the issue is. Column 3 and 4 are just the hyperlink as I have the code parse original (longer) link and then reconstruct it. 
 
Any ideas why the bottom one is invalid?
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    You are missing some commas.
     
    Try the below instead. 
     
    concat('<a href="', item()?['Column3'], item()?['Column4'], '">', item()?['Event'], '</a>')
     
  • CU23080757-2 Profile Picture
    12 on at
    I don't know how to respond to a suggested answer but the one Expiscornovus has suggested didn't work for me. It just returned the output as a giant cell. 
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    Can you share the outputs of your test in a screenshot. Also a screenshot of your flow action would be useful. For example, what type of action are you using, a create HTML table for example?
     
    Below is how I tested it in a Select action. Maybe that helps as well?
     
    1. The setup, I have added the expression to a value field within the map section of a Select action
     
     
    2. The test run
     
     
  • Suggested answer
    David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    I take a much simpler approach; I just code the HTML in the value field like:
    I do find it easier if you first enter the html code and then insert the values from the dynamic content second. Just be sure before you insert the field, it is in the appropriate spot where it needs to be inserted in the HTML code.
     
    If you plan to send the HTML table via e-mail, in order for the links to work, you will need to pass the Output of the Create HTML table action through a Compose action with this expression:
    replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&quot;','"')
  • CU23080757-2 Profile Picture
    12 on at
    Hi this is what the raw outputs now look like: 
     
     
    I don't really get why the dramatic change from just this concat. 
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard