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 / How to get title of li...
Power Automate
Unanswered

How to get title of link to show instead of a href in an add to row?

(0) ShareShare
ReportReport
Posted on by 302

I have an add to row action and need a dynamic link for the notify column to be added to the table

It's currently like this: 

<@{outputs('ahref')}="https://@{outputs('Environment_URL')}/main.aspx?appid=@{outputs('AppId')}&pagetype=entityrecord&etn=cr4c1_intakeform&id=@{triggerOutputs()?['body/cr4c1_intakeformid']}">New Project Submission</a>

and shows in the outputs and table as exactly that:

el5_0-1706297927926.png

I tried a compose action with this: 

replace(replace(replace(outputs('HTML_Link'),'&lt;a href=&quot;','<a href="'),'&quot;&gt;','">'),'&lt;/a&gt;','</a>')
 
but it didn't do anything in this scenario.
 
Does anyone know how to show only the text New Project Submission while still being a clickable link?

 

Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at

    I use this expression for something else that is similar to your problem. If you adapt your expression to the following by replacing body('Create_HTML_table') with your outputs('HTML... dynamic content it may work:

     

    replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&quot;','"')

     

     

     

     

  • el5 Profile Picture
    302 on at

    Thanks, but that didn't seem to work and gave an error.

  • David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at

    Sorry to hear that. Question, is what you are trying to do for a SharePoint list where you want a friendly name to appear instead of the URL. If so, you can use JSON formatting on the field in SharePoint. Use the following:

    {
     "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
     "elmType": "a",
     "txtContent": "\u200B Open Link",
     "attributes": {
     "iconName": "OpenInNewTab",
     "class": "ms-fontColor-themeDark",
     "href": "=@currentField",
     "target": "_blank"
     },
     "style": {
     "font-size": "12px",
     "text-decoration": "none",
     "font-weight": "normal",
     "margin-left": "6px"
     }
    }

    The limitation with this is that all of the links will say "Open Link" rather than being unique. Once I figured this out, I wrote this down and saved it. I cannot remember how I figured how to add the icon in front of the link name. I think I did this by pressing the Windows and period key to open the icon window and selected one.

  • el5 Profile Picture
    302 on at

    no it's not from a sharepoint list

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard