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
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?
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.
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'
}
}
User | Count |
---|---|
89 | |
40 | |
23 | |
20 | |
16 |
User | Count |
---|---|
130 | |
50 | |
48 | |
35 | |
26 |