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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,674)