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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (6,332)