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 / Replace URL as a strin...
Power Automate
Unanswered

Replace URL as a string/link

(0) ShareShare
ReportReport
Posted on by 5

Hi,

 

we want to replace the URL in a SharePoint List as a string/link.

We generated a link column in SharePoint which get filled by a flow-workflow with the URL to a SharePoint document libary e.g. "https://sharepoint/documents/test". The workflow works but in the column the whole URL is displayed. Is there an opportunity to replace the long URL for exampl with an expression?

 

Many thanks!

Lisa

Categories:
I have the same question (0)
  • PieterVeenstra Profile Picture
    on at

    Hi @Lisa4404,

     

    You can use expressions like substring and split and all sorts of others. When you add dynamic contents in the expressions tab you will find that if you start typing the fucntions available will be presented to you. It's not restricted to the list of expressions shown in the default list.

  • Lisa4404 Profile Picture
    5 on at

    Hi @Pieter_Veenstra,

     

    thanks for your reply.

    The flow to generate the URL with dynamic content works. The problem is that the URL is written in the SharePoint column and we want to have a link. In SharePoint you can decide between the URL and the Display Text. We want to adapt the Display Text of the Link.

     

    Kind regards

    Lisa

  • PieterVeenstra Profile Picture
    on at

    That means that you need to update the URL field and include the display text of the URL. 

     

    you can do wthis with 

     

    <UrL>, <Description>

     

    make sure that there is a space after the comma

  • Lisa4404 Profile Picture
    5 on at

    I took the workflow action 'update element in SharePoint'. In the link-field I generate a URL. When I added the description like this

    1.png

     

    the result is

    2.png

     

    but the result should be

    3.png

     

    Or do you use another flow action to generate the link?

    Hope it's comprehensible...

     

  • PieterVeenstra Profile Picture
    33 on at

    I think this doesn't work at the moment.

     

    I just created an item with a url field called hyper. Then I ran the following Flow which first gets hyper field of the item and then updates the item and the description is removed.

     

    SetURL.PNG

     

    I also tried manually updating the URL variable with the "url, description" and I got the same result as you.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Lisa4404,

     

    Could you please share a screenshot of your flow's configuration?

    Do you want convert the URL into a Display text string/link within the Hyperlink column of your SharePoint list or library using Microsoft Flow?

     

    I agree with @Pieter_Veenstra's thought almost, I afraid that there is no way to achieve your needs in Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Best regards,

    Kris

  • bdc604 Profile Picture
    158 on at

    Has anyone had any luck leveraging REST API in a Flow: HTTP or Flow: Send an HTTP Request to Sharepoint to achieve the link/display issue for hyperlinks?

  • Brentless Profile Picture
    106 on at

    Replying to older thread, but I have done this successfully on several use cases.

     

    The update part of the code for the hyperlink field is as follows:

     

    'HyperlinkFieldNameHere':  {'__metadata': { 'type': 'SP.FieldUrlValue' },'Description': 'Link Name Here','Url': 'http://www.whatever.com' }

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Brentless

     

    Please could you attach a screenshot of your rest call for Update the hyperlink?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Managed to resolve this, here is my screenshot:

     

     

     

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard