Skip to Content

How to Filter Child Elements For Service Layer?

I'm trying to figure out how to filter child elements in Service Layer? I will give you an example. With my below service call for deliveries, I'm filtering DocEntry, DocNum, DocDate, DocTotal and DocumentLines. For the child elements of DocumentLines, how would I update my query to include only ItemCode, and Quantity?

Example Service Call:

https://hanab12:50000/b1s/v1/DeliveryNotes(1)?$select=DocEntry,DocNum,DocDate,DocTotal,DocumentLines

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 20, 2017 at 09:28 AM

    Currently this is not possible.

    The alternative is to deploy a calculation view with the data you need and expose it using XSODATA.

    Service Layer will also have the capability to query views directly on future patches.

    Add comment
    10|10000 characters needed characters exceeded