cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kcg633755
Helper I
Helper I

HTTP POST request to clear person field

Hey everyone,

Does anyone know why this HTTP request is not clearing my SharePoint list person field?

 

Screenshot 2022-03-07 at 10.37.41.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @kcg633755 

 

Here the video

 

https://youtu.be/6VtACLHmgAg

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

13 REPLIES 13
abm
Super User
Super User

Hi @kcg633755 

 

image.png

 

Try removing the "Sendtold":"", line from the above.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Thanks 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
}

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
kcg633755
Helper I
Helper I

Unfortunately, it failed again. 😣

What is the failure message? I did tested this and worked for me. 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Hi @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



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
kcg633755
Helper I
Helper I

Hi 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



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
kcg633755
Helper I
Helper I

Also, 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.



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
abm
Super User
Super User

Since 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



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
abm
Super User
Super User

Hi @kcg633755 

 

Here the video

 

https://youtu.be/6VtACLHmgAg

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,728)