1

I have 2 lists, ParentList and ChildList. The items in ParentList are in folders. Child list has a lookup field pointing to an item in ParentList. When I attempt to run the following query:

 /_vti_bin/ListData.svc/ChildList?$expand=ParentList

The parent object is not expanded and returns a null object. It seems that $expand is not recursive. This killed us. Is there any way around this limitation?

Example response when trying to expand:

<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ParentList" type="application/atom+xml;type=entry" title="ParentList" href="ChildList(1)/ParentList">
    <m:inline />
</link>
0

You can try this type of query:

/_vti_bin/ListData.svc/ChildList?$expand=lookupcolumn_name$select=FieldA,FieldB

You will get some reference from @wjervis's answer.

  • This works in 2013, but not 2010. – Jonathan Eckman Jul 7 '16 at 15:58

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.