使用 Ax7 oData 进行字符串过滤会出现错误

Mik*_*ell 4 axapta odata dynamics-ax7

我正在尝试使用 Ax7 oData 端点按名称搜索销售报价。使用相等效果很好,但是更高级的过滤函数会给我带来错误。

这个简单的 EQ 查询工作正常: https://myAx7Server/data/SalesQuotationHeaders?$filter=SalesQuotationName eq 'Sparrow Retail'

但是这个查询给了我错误“查询运算符的类型‘System.String’不可查询!”

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

我是否做错了什么,或者只是这些 oData 端点不支持按字符串搜索?

Mik*_*ell 7

在这里找到答案:https://ax.help.dynamics.com/en/wiki/dynamics-ax-7-services-technical-concepts-guide/#odata-services

这是作为通配符实现的示例:http://host/service/EntitySet ?$filter=StringField eq '*retail*'