Hey everyone,
Does anyone know why this HTTP request is not clearing my SharePoint list person field?
I am guessing the space in my list title is causing an issue. I have tried every combination to resolve and I am still getting this 400 error message...
"An entry without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified.
clientRequestId: c0f2f924-db36-4e41-a54b-66541721533a
serviceRequestId: 971c26a0-e0e8-3000-ac9e-869adb580c2d"
Any help would be grand.
Solved! Go to Solution.
Hi @kcg633755
Here the video
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @kcg633755
Try removing the "Sendtold":"", line from the above.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThanks abm,
Unfortunately that didn't resolve the issue.
Hi @kcg633755
Try the below in your HTTP body
{
'__metadata':{'type':'SP.Data.Build%20ProjectsListItem'},
'SendToId':-1
}
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogUnfortunately, it failed again. 😣
What is the failure message? I did tested this and worked for me.
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @kcg633755
Ok I managed to replicate the error.
Your list name is called Build Projects so in your http body you need _x0020_ for the spaces.
Build_x0020_Projects
Try the below
{
'__metadata':{'type':'SP.Data.Build_x0020_ProjectsListItem'},
'SendToId':-1
}
I have made a tutorial video about this.
https://www.youtube.com/watch?v=sd_Wnu1ukns
Let me know how it goes.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi abm,
I had the _x0020_ already but spotted the two underscores before metadata which now is giving me a new error perhaps relating to the Send_x0020_toId field.
Error message
An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected.
clientRequestId: 964614ef-86f0-4e75-9416-b45651a5d2ca
serviceRequestId: d86928a0-d043-3000-c5c6-0953d6eaae2d
Hi @kcg633755
Without looking to SharePoint field schema names its difficult give you an exact answer. I have demonstrated in that video and tested it.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogAlso, your helpful example was with only 1 person selected. My person field accepts multiple selections
Here is my schema
{
'__metadata':{'type':'SP.Data.Build_x0020_ProjectsListItem'},
'Send_x0020_toId':''
}
Hi @kcg633755
Here you go and thats the issue. You need a different syntax. I will get back to you.
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogSince it holds multiple values you need to set with results:[0]
Try the below
{
'__metadata':{'type':'SP.Data.Build_x0020_ProjectsListItem'},
'Send_x0020_toId'::{'results':[0]}
}
Will also do a video later for this.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @kcg633755
Here the video
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThe first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
29 | |
27 | |
23 | |
17 | |
10 |
User | Count |
---|---|
66 | |
58 | |
29 | |
27 | |
25 |