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 update optional...
Power Automate
Unanswered

How to update optional text for hyperlink types in SharePoint lists in Power Automation

(0) ShareShare
ReportReport
Posted on by 14

1.In SharePoint

jacksu_0-1719155753279.png

2.There is only one input box in Power Automation

jacksu_1-1719155933506.png

 

ask:How to update optional text for hyperlink types in SharePoint lists in Power Automation

 

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

    Hi @jacksu ,

    You can consider a multi-line rich text column so that you can customize the name of the link.

     

    Best Regards,

    Sunshine Gu

  • jacksu Profile Picture
    14 on at

    Is it convenient to give an example? When I input HTML in a multi line rich text format input box, it is not automatically converted but directly displayed

     

    1.In editing

    jacksu_1-1719192956251.png

     

    2.Show in list

    jacksu_0-1719192917757.png

     

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @jacksu ,

    Please check this test:

    Column Name and Type:

    vyetonggumsft_2-1719194125690.png

    My Flow:

    vyetonggumsft_3-1719194217477.png

    <a href="https://www.baidu.com/">百度</a>

    The Result:

    vyetonggumsft_1-1719194075189.png

    Best Regards,

    Sunshine Gu

  • jacksu Profile Picture
    14 on at

    Thank you for your help. Based on your example, I have successfully run it

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

    A solution has already been accepted for this, but if you want a fixed value for the optional text (e.g., Click Here) and use the hyperlink field, you can use JSON list formatting with the following code:

     

    {
     "$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"
     }
    }
    

     

    Just replace the value after txtContent with what you want listed. The above code also displays it with an icon. Just remove the iconName line from the code if you don't want to use it. You can choose a different icon from Office UI Fabric Icons

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