Skip to Content
0
Jul 12, 2018 at 12:45 PM

Can't expand Items with Orders/DocumentLines

393 Views

Hello Community,

i am trying to get all Items that havent been ordered. I thought about expanding Items with Orders/DocumentLines and filtering the Items with Lines.

I tried using $expand Items with Orders/DocumentLines but am getting an Error.

Expanding Items with ItemGroups does work.

/b1s/v1/Items?$expand=ItemGroups&$select=ItemCode,ItemName,ItemGroups/GroupName,Properties1,ItemWarehouseInfoCollection

/b1s/v1/Items?$expand=Orders/DocumentLines&$select=ItemCode,ItemName,Orders/DocumentLines/DocEntry,Properties1,ItemWarehouseInfoCollection

We believe this is because of a wrong Implementation of DocumentLines as it should be a seperate Entity like ItemGroups?

Thanks in advance for your help!