4

I have one list which contains cross-site lookup field. I need to filter with this field using REST API. Below is my URL

var url = _spPageContextInfo.webAbsoluteUrl + "/_api/web/Lists(guid'" + listId + "')/items/?$select=Created,Title,Project/Id&$expand=Project/Id&$filter=Project/Id eq 3"

It gives below error

Microsoft.SharePoint.SPExceptionThe field or property 'Project' does not exist.

Any help would be appreciated.

5

Unfortunately you can't expand the column 'Project' as its not on the same site.

REST API's expand supports only for same site list columns.

See this for more reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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