My Products
Help
AGeleijns
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
Anonymous
Not applicable

by Anonymous

Hi,

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

I'll get back to you ASAP.

Anonymous
Not applicable

by Anonymous

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