Skip to Content
0
Former Member
Mar 26, 2014 at 08:07 PM

How to use complex types in a odata url filter

1188 Views

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.

Attachments

Capture.JPG (31.1 kB)