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
Impactful Individual
Impactful Individual

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
Impactful Individual
Impactful Individual

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
Impactful Individual
Impactful Individual

Happy to hear that it works for you!!!

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,451)