我正在尝试使用 Ax7 oData 端点按名称搜索销售报价单。使用相等性工作得很好,但更高级的过滤功能会给我错误。
这个简单的 EQ 查询工作正常: https://myAx7Server/data/SalesQuotationHeaders?$filter=SalesQuotationName eq 'Sparrow Retail'
但是这个查询给我错误“查询运算符的类型‘System.String’不可查询!”
https://myAx7Server/data/SalesQuotationHeaders?$filter=startswith(SalesQuotationName,'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*'
关于odata - 使用 Ax7 oData 进行字符串过滤会出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43888293/