-1

I have two lists with look-up columns, Address and Employee. GetID (Address) looks up list Employee. Below is the rest query. But its throwing error (404 Bad req). Can anyone give some insight into why this is getting a 404?

_api/web/lists/GetByTitle('Address')/items$Select=Address_Line1,Address_Line2,Street_No,State,Pin_Code,GetID/Emp_Fname,GetID/Emp_Lname,GetID/Emp_Mname,GetID/Phone_No,GetID/Designation&$expand=GetID

  • What version of SharePoint? Have you successfully used REST calls on this environment before? – thanby Apr 17 '18 at 13:07
1

You are missing ? before $Select. Refer below URL. It should work. Try it and check ....

_api/web/lists/GetByTitle('Address')/items?$Select=Address_Line1,Address_Line2,Street_No,State,Pin_Code,GetID/Emp_Fname,GetID/Emp_Lname,GetID/Emp_Mname,GetID/Phone_No,GetID/Designation&$expand=GetID

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.