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

Sign in or create account

to get a personalized navigation.

CONTRIBUTOR *

oData filtering on CustomerLabels

by AGeleijns

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

by Anour Hannouch

Hi,

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

I'll get back to you ASAP.

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