cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Manc_Gurl
Resolver I
Resolver I

Updating a SP Hyperlink Field using Send HTTP request

I'm trying to update a hyperlink field in an existing item in a SharePoint document library which uses document sets.  From what I've read you have to use the Send an HTTP request action to do this.  I have attempted to do this after following a couple of posts I found in this forum but the Flow fails on the "Send an HTTP Request" no matter how I format the body of the request I keep getting this error:

 

Invalid JSON. The property name '' is not valid. The name of a property cannot be empty.

 

Below is a snip of the flow

Capture.JPG

 

As a test I used the above method on a list and it works, so my feeling is that this is something to do with the fact I'm attempting to do it on a document library or document set perhaps?

5 REPLIES 5
Manc_Gurl
Resolver I
Resolver I

I'd really appreciate some assistance with this, I have a bunch of 2010 workflows which need moving to Power Automate.  It's taking forever to get this done, this is just stumbling block of many at the moment.  Surely updating a hyperlink field on a document library is possible, it works on a list.

BUMP!

Same issue , did you find the workaround or the bug??  I trying to update a HyperLink field in Document Library is not working same as updating a list. 

 

Hi @PPDev2021 Yes I got this working in the end, it was my own stupid fault my syntax was incorrect.  The body of my Send HTTP Request to SharePoint needed to look like this instead.

 

{"__metadata":{
"type":"SP.Data.CTransmittalsItem"},

"Contractor_x0020_Transmittal":{

"__metadata":("type":"SP.FieldUrlValue"},

"Description":"Test",

"Url":"http://www.google.com" }

}

 It is working perfectly now that I rectified that.

PPDev2021
Frequent Visitor

Thanks, It worked for me too for updating hyper link field on document library.  The area i was making mistake is the meta data {'__metadata': {'type':'SP.Data.Shared_x0020_DocumentsItem'}

Following is the code. 

{'__metadata': {'type':'SP.Data.Shared_x0020_DocumentsItem'},

'QARunHistory':{
'__metadata':{'type':'SP.FieldUrlValue'},
'Description': 'Succeeded',
'Url':'http://www.google.com'
}
}

 

UserGroup.png

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,678)