Skip to Content
0

How to Filter Child Elements For Service Layer?

Jul 17, 2017 at 06:15 PM

102

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ralph Oliveira
Jul 20, 2017 at 09:28 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks this is nice to know.

0