cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JC12
Frequent Visitor

Create item in SharePoint list using HTTP POST Request - lookup column not populating

Hi All,

The HTTP POST below works fine except the 'Vuln0' column is not being populated. It's a single value lookup. I feel like I am missing something simple, but I've tried multiple syntax tweaks and no luck. Any help would be greatly appreciated!

 

JC12_0-1653052268758.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
vivekpande18
Super User
Super User

Hi @JC12 ,

 

In my case lookup column is BranchList. You need to do the below changes to update lookup column

 

1- Add inside  header

IF-MATCH : *

2- Method

PATCH

 

3- Update lookup value :

"BranchListId": Id of the lookup list

 

Note: append Id in the name of the lookup column

 

 

vivekpande18_0-1653062191790.png

 

 

This will work.

 

Thanks

Vivek Pande

If this post helps answer your question, please "Accept as Solution" to help others find it more quickly.

If you thought this post was helpful, please give it a Thumbs Up.

 

View solution in original post

3 REPLIES 3
vivekpande18
Super User
Super User

Hi @JC12 ,

 

In my case lookup column is BranchList. You need to do the below changes to update lookup column

 

1- Add inside  header

IF-MATCH : *

2- Method

PATCH

 

3- Update lookup value :

"BranchListId": Id of the lookup list

 

Note: append Id in the name of the lookup column

 

 

vivekpande18_0-1653062191790.png

 

 

This will work.

 

Thanks

Vivek Pande

If this post helps answer your question, please "Accept as Solution" to help others find it more quickly.

If you thought this post was helpful, please give it a Thumbs Up.

 

JC12
Frequent Visitor

@vivekpande18, you are my hero, that worked like a charm! I had no idea I had to append 'Id' to the internal field name! Thank you!!

vivekpande18
Super User
Super User

Happy to hear that it works for you!!!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,845)