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 / Formatting Links in HT...
Power Automate
Suggested Answer

Formatting Links in HTML Table

(1) ShareShare
ReportReport
Posted on by 277

Hello everyone, 

 

I have a workflow that sends an email containing a table. The table information comes from a dataverse database.

 

Table CSS styles:

ADumith_2-1717098960601.png

 

 

This table is made in HTML. It is the one below.

ADumith_0-1717098456861.png

 

Workflow step:

 

ADumith_1-1717098909625.png

 

As you can see, there is a column that contains a link. When building the table, the link is very long and unattractive. So, I wonder if it's possible to place the link in the cell value of the first column. This way, the cell will show a value with a hyperlink.

 

Do you think this is possible? Could you help me do it?

 

Thank you,

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @ADumith ,

    I checked your HTML format and found that this format is universal and does not need to be changed.

    You only need to adjust the order of the fields in your append to array variable and put the link field first so that it can be located in the first cell in the HTML table.

    vyetonggumsft_0-1717118056599.png

    Best Regards,

    Sunshine Gu

     

  • ADumith Profile Picture
    277 on at

    Hello @v-yetonggu-msft ,

     

    First of all, thank you very much for replying.

     

    I don't think I explained myself correctly.

     

    Basically, what I need is for the table to be displayed in this way:

    ADumith_0-1717161381729.png

     

    As you can see, the "Link" field or column is no longer there. Instead, the link is associated with the Matter Number column. That is, if the user clicks on the number, the system should take them to the link associated with that number.

     

    I hope this makes sense now.

     

    Again, thank you very much.

  • ADumith Profile Picture
    277 on at

    Hello @v-yetonggu-msft 

     

    I tried this: 

    {
     "Matter Number": "<a href='@{parameters('elAppUrl (el_elAppUrl)')}&elid=@{items('Apply_to_each')?['el_matterengagementletterid']}&screen=assistant' title='Click the link below to complete the task for the related matter'>@{items('Apply_to_each')?['el_matternumber']}</a>",
     "Client Name": @{items('Apply_to_each')?['el_clientname']},
     "Matter Name": @{items('Apply_to_each')?['el_mattername']},
     "Eng Letter Status": @{items('Apply_to_each')?['el_engagementletterstatus@OData.Community.Display.V1.FormattedValue']}
    }

     

    But I'm getting this instead. 

    ADumith_0-1717180736112.png

     

    Any idea?

     

    Thank you

     

     

  • ADumith Profile Picture
    277 on at

    I would be interested if someone could help me with this.

    Thank you,

  • Suggested answer
    ADumith Profile Picture
    277 on at
    Hello,
     
    I figure it out how to fix the issue:
     
    Into the email body I added this:
    replace(replace(replace(body('Create_HTML_table_2'), '&lt;' , '<'), '&gt;''>'), '&quot;'' '' ')
     
     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard