首页 > 解决方案 > 在“详细信息”与“顶级”字段中获取请求 $filter

问题描述

我正在使用 Acumatica 的 REST API 开发一系列请求以用于电子商务集成。在这个特定的示例中,我想获取所有具有现有数量的项目。

/entity/Default/17.200.001>/PhysicalInventoryCount?$filter=PhysicalInventoryCountDetail/PhysicalQty gt 1

并收到以下错误:

"message": "发生错误。",

"exceptionMessage": "给定的键不在字典中。",

为了确保我没有做错什么,我继续使用 $filter 参数的 acumatica 帮助中显示的示例:

/entity/Default/17.200.001/Customer?$filter=MainContact/Email eq >'barkeep@usabartend.con'

事实上,这确实带来了正确的客户记录

'MainContact' 被列为'Customer' 的对象类型'Top-Level' 而'PhysicalInventoryCountDetail' 的对象类型为'Detail',仅仅是我无法过滤详细对象字段吗?或者有什么我想念的。

谢谢

标签: acumatica

解决方案


你不应该按细节过滤。不支持。您可以按链接实体进行过滤(在您的示例中,它可以通过联系电子邮件进行过滤)。


推荐阅读