Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Outlook
    • Planner
    • Power Apps
    • SharePoint
    • Teams
  • Triggers
  • Ready to use solutions
    • Approval Process Template
    • Task Delegation App
    • The Ultimate Power Automate expressions cheat sheet
    • Power Automate HTTP requests to SharePoint cheat sheet
    • Power Automate HTTP requests to Graph API cheat sheet
  • ABOUT ME
  • Get help with your flow
  • POWER PLATFORM SERVICES
Menu

JSON instead of SharePoint hyperlink column (Power Automate)

Posted on December 6, 2020October 2, 2022 by Tom

“I built a Power Automate flow that copies excel rows to a SharePoint list, but I can’t get the hyperlink column to work. It should both have a description, and a link, but I don’t know how to update it.”


When you use the ‘Hyperlink’ column is SharePoint, it’ll ask for two values, URL and Alternative text, but the ‘update’ action in Power Automate has only a single field.

Power Automate update Sharepoint hyperlink column

And if you try to put in both the values, URL and Alternative text, you’ll end with an error message.

While it might seem as the error message is giving you a hint on proper format (..type ‘String/uri’), it’s not. It doesn’t mean that you should use format [Alternative text]/[URL] to update the column. It tells you that it expects a String if form of a url. Just the url which will be then displayed in the column. You can’t update the Alternative text into the hyperlink column. So what are the workarounds?

Multiple lines of text field

One option is to get rid of the ‘Hyperlink’ column. If it’s updated by a Power Automate flow, then you don’t need the fancy update form. You can use Multiple lines of text column with Rich text enabled instead. Enabling Rich text allows you to use HTML code in the column, including usage of links, as shown by the code blow.

<a href="[URL]">[DisplayText]</a>

Note:
[URL] is your dynamic content with the link
[DisplayText] is your dynamic content with the 'Alternative text'

JSON formatting

The other option is to use JSON formatting on the ‘Hyperlink’ column. When you update the column with the URL, it’ll display the URL. But using JSON formatting you can change what will be shown to the users while the URL will stay in the background. Using the formatting below you can go from URL to ‘Link’ text with the URL behind.

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "a",
  "txtContent": "Link",
  "attributes": {
    "target": "_blank",
    "href": "@currentField"
  }
}
Power Automate Sharepoint hyperlink update JSON

You can find more information on the JSON formatting in my previous post on building calculated hyperlink column.

Summary

While Power Automate doesn’t allow you to update the ‘Hyperlink’ SharePoint column in the same way as users would, there’re still workarounds. As long as users don’t need to update the columns themselves, there’s not much of a difference. From the user perspective, both options will hide the URL behind the text.

But if the users must be able to update the link, then I’d say the JSON formatting is a better choice. Users don’t need to mess with HTML or Rich text editor, they’ll just update the link in the column and JSON will take care of the rest.


πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

4 thoughts on “JSON instead of SharePoint hyperlink column (Power Automate)”

  1. Joanna says:
    February 13, 2023 at 4:12 pm

    Hello Tom,
    I have created a flow that should update one of the columns with link. Flow runs successfully but the column is not updated. Do you have any idea what might be the problem here?

    Reply
    1. Tom says:
      February 22, 2023 at 7:29 pm

      Hello Joanna,
      the output of the HTTP request action should give you some information about what happened, but as long as the format is correct and the column is a hyperlink column it should work.

      Reply
  2. Peyyi Lu says:
    August 15, 2023 at 10:05 pm

    Hi Tom
    If I want to pass the entire rich text field in an email message and send the email with the body showing the entire rich text field value, how can I convert the rich text field to json format? If I just use the Dynamic Content “Message” (which is the field name), I got an error saying that The response is not in a JSON format.

    Reply
    1. Tom says:
      September 7, 2023 at 12:15 pm

      Hello Peyyi,
      you can’t convert rich text (which is an HTML code) to JSON, that’s completely different formats and converting from one format into another is not an easy task as they’re completely different.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

Working on an Approval process?

Use the Approval Process Template and the Task Delegation App to skip the hard part and deploy a fully functional approval solution on a SharePoint list in minutes! And then the next one, and the next one...

Approval Template Preview ✨ Learn more ✨

Turn ideas into flows with ease!

Grab the complete Power Automate Cheat Sheet Bundleβ€”everything you need to master expressions, SharePoint HTTP calls, and Graph API in Power Automate.

Cheat Sheet Bundle Preview ✨ Get the Cheat Sheets

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with thousands of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2025 Let's POWER Automate | Theme by SuperbThemes