cancel
Showing results for 
Search instead for 
Did you mean: 
My Areas

Sign in

Sign in or create a new user to get relevant areas automatically added to your areas.

Highlighted
CONTRIBUTOR *

oData filtering on CustomerLabels

I want to retrive all Customers with a specified label.

When i add the filter string.Format("CustomerLabels/any(p:p/Name eq '{0}')", Label.Name)

 

i get the exception "QueryParameterException - Property with name 'CustomerLabels' could not be found in entity."

 

Is there a way to retrive only customers with a specified label?

2 REPLIES 2
Highlighted

Re: oData filtering on CustomerLabels

Hi,

found a small bug there I think, looking into it!

I'll get back to you ASAP.

Highlighted

Re: oData filtering on CustomerLabels

Hi,

According to our developers, due to customer labels having its own endpoint, making an oData filter on that object clashes with the data table, and the API does not allow this.

The result if you want to make a filter on an object that has its own endpoint, it will most probably not work.

 

Workaround:

Make a GET, and parse the customer label