Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String filtering with Ax7 oData gives error

I am trying to use the Ax7 oData endpoints to search for sales quotations by Name. Using equality works just fine, but the more advanced filter functions gives me errors.

This simple EQ query works OK: https://myAx7Server/data/SalesQuotationHeaders?$filter=SalesQuotationName eq 'Sparrow Retail'

But this query gives me the error "The type 'System.String' for the query operator is not Queryable!"

https://myAx7Server/data/SalesQuotationHeaders?$filter=startswith(SalesQuotationName,'S')

Am I doing something wrong, or is it just that these oData endpoints do not support searching by string?

like image 705
Mikael Nitell Avatar asked Oct 15 '25 21:10

Mikael Nitell


1 Answers

Found the answer here: https://ax.help.dynamics.com/en/wiki/dynamics-ax-7-services-technical-concepts-guide/#odata-services

This is implemented as a wildcard character Example: http://host/service/EntitySet?$filter=StringField eq '*retail*'

like image 84
Mikael Nitell Avatar answered Oct 18 '25 22:10

Mikael Nitell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!