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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,329)