Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

How to use complex types in a odata url filter

$
0
0

Hello,

   I am in the process of building a service that uses a complex data type as input in a query filter. I am not sure how the url will need to be generated and also how to retireve this complex type in the get_entity_set method.

 

Example:

   I have a complex type as below:

 

Name:

with properties

  Firstname

  Lastname.

 

I would like to pass the name as a query filter. an I am not sure how to do this.
Should it be like this:

https://.../service/getdetails?$filter=Name.firstname eq 'John' and Name.Lastname eq 'Smith'

 

My second question is how do I retireve this filter in the get_entity_set method.

 

Capture.JPG


Viewing all articles
Browse latest Browse all 1657

Trending Articles



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