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 / Unable to copy web URL...
Power Automate
Unanswered

Unable to copy web URL alternative text from sharepoint list of one sharepoint site to sharepoint list of another sharepoint site

(0) ShareShare
ReportReport
Posted on by

Hi I have a sharepointlist in one of my sharepoint site, I am copying the data from it to my another sharepoint list located on another site.

 

On my primary sharepoint list from where I am copying the data , there is a column named as CDE which stores both hyperlink and alternative text for that link when user makes entry. On the primary site its displaying the alternative text in the CDE column and when I will click on that alternative text its taking me to the URL that I have stored with that text. For example see below photo-

 

saurabh255_0-1618430074726.png

 

 

I have created a flow in power automate to copy this column but when I am copying it to my secondary sharepoint list stored in another sharepoint site its just copying the web URL link of the text and not copying the alternative text at all. For Example as shown in below picture-

 

saurabh255_1-1618430241875.png

I want to copy this CDE column exactly like the original sharepoint list and if not possible then text and URL seprately but I want to copy alternative text as well.

 

I have tried everything but not able to figure out anything for this. Kindly help me with this issue as I am very new into power automate. It will be really helpful.

 

 

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  in order to update value of hyperlink column in SharePoint list with text and url, you need to use REST API with Send HTTP Request to SharePoint action.

     

    Refer to this blog https://www.annajhaveri.com/power-automate/rest-api-to-create-and-update-sharepoint-list-items-from-power-automate/ it has details on how to provide value for hyperlink column in REST API. Let me know if you have further questions.

  • WOTPRO Profile Picture
    26 on at

    did you figure out how to do that? I am having the exact same issue, and the above suggestion doesn't seem to be the solution to this problem

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @WOTPRO  did try to use API to update the hyperlink column, are you facing issue with it?

  • WOTPRO Profile Picture
    26 on at

    no sadly i can't get it to work 😞 

  • WOTPRO Profile Picture
    26 on at

    I get this error when doing the first example you made

     

    An unexpected 'PrimitiveValue' node was found when reading from the JSON reader

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @WOTPRO  is it possible for you to share the the screenshot of your flow specifically the send http request action?

  • WOTPRO Profile Picture
    26 on at

    WOTPRO_0-1697549936890.png

    Hi this is the flow, it is supposed to copies from one SharePoint list on the Intranet site to another Sharepoint list on the IT site everytime a change is made 

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @WOTPRO  thanks for sharing the screenshot, the configuration looks right, are you sure that your Hyperlink column name is Link? Also if you could help with screenshot of Send Http action from your flow run it would help me understand how the configuration looks like with actual values

  • WOTPRO Profile Picture
    26 on at
    This is the raw input
    {
        "host": {
            "connectionReferenceName""shared_sharepointonline",
            "operationId""HttpRequest"
        },
        "parameters": {
            "dataset""https://X.sharepoint.com/sites/IT",
            "parameters/method""POST",
            "parameters/uri""_api/web/lists(guid'63D8FED3-CF7D-4C85-A073-1E0B53137024')/items/",
            "parameters/headers": {
                "content-type""application/json;odata=nometadata",
                "accept""application/json;odata= nometadata"
            },
            "parameters/body""\"Sagsnr\": {\n            \"Description\": \"IT\",\n\n            \"Url\": \"https://X.sharepoint.com/sites/IT\"\n\n}"
        }
     
    this is the raw output
     
    {
        "statusCode"400,
        "headers": {
            "Cache-Control""no-store, no-cache",
            "Pragma""no-cache",
            "Set-Cookie""ARRAffinity=51c5964be65011b1cad3526b8255ea473f9a641923fda7092968c1277815672b;Path=/;HttpOnly;Secure;Domain=sharepointonline-we.azconn-we-003.p.azurewebsites.net,ARRAffinitySameSite=51c5964be65011b1cad3526b8255ea473f9a641923fda7092968c1277815672b;Path=/;HttpOnly;SameSite=None;Secure;Domain=sharepointonline-we.azconn-we-003.p.azurewebsites.net",
            "Strict-Transport-Security""max-age=31536000; includeSubDomains",
            "x-ms-request-id""de01e5a0-00cf-7000-86a2-812abbff43a2",
            "X-Content-Type-Options""nosniff",
            "X-Frame-Options""DENY",
            "Timing-Allow-Origin""*",
            "x-ms-apihub-cached-response""true",
            "x-ms-apihub-obo""false",
            "Date""Tue, 17 Oct 2023 14:01:30 GMT",
            "Content-Length""547",
            "Content-Type""application/json",
            "Expires""-1"
        },
        "body": {
            "status"400,
            "message""{\"odata.error\":{\"code\":\"-1, Microsoft.SharePoint.Client.InvalidClientQueryException\",\"message\":{\"lang\":\"da-DK\",\"value\":\"An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected.\"}}}\r\nclientRequestId: f0d37772-01f2-4f74-b493-da5b75d5390a\r\nserviceRequestId: de01e5a0-00cf-7000-86a2-812abbff43a2",
            "errors": []
        }
    }
     
  • WOTPRO Profile Picture
    26 on at

    @annajhaveri No my column is called Sagsnr - i changed that now but still throws the same error, was hoping that would have fixed the issue.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard