Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Nested Filter in Expand (OdataV4 feature)

$
0
0

Nested Filter in Expand

 

 

OData V4 supports nested filters in $expand. The request below return People with Firstname "Bart" and all their trips with Name "Trip in US".

GET serviceRoot/People?$filter=Firstname eq 'bart'&$expand=Trips($filter=Name eq 'Trip in US')

 

 

Working example from publicly available OData v4 endpoint here (http://services.odata.org/V4/OData/OData.svc/):

 

http://services.odata.org/V4/TripPinService/People?$filter=LastName%20eq%20%27Calabrese%27&$expand=Friends($filter=FirstName%20eq%20%27Scott%27)

 

 

how can I get the same result with current SAP Gateway?


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>