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



我正在尝试使用 Ax7 oData 端点按名称搜索销售报价单。使用相等性工作得很好,但更高级的过滤函数给了我错误。

这个简单的 EQ 查询工作正常:https://myAx7Server/data/SalesQuotationHeaders?$filter=SalesQuotationName 情商 "麻雀零售">

但是这个查询给了我错误"查询运算符的类型'System.String'不可查询!

https://myAx7Server/data/SalesQuotationHeaders?$filter=startswith(销售报价单名称,"S"(

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

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

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

最新更新