【问题标题】:GET request $filter on field in a 'Detail' versus 'Top-Level'在“详细信息”与“顶级”字段中获取请求 $filter
【发布时间】:2019-02-13 18:43:25
【问题描述】:

我正在使用 Acumatica 的 REST API 开发一系列请求,以用于电子商务集成。这个特殊的例子我想得到所有有手头数量的物品。

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

并收到以下错误:

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

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

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

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

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

'MainContact' 被列为'Customer' 的对象类型'Top-Level' 而'PhysicalInventoryCountDetail' 的对象类型为'Detail',仅仅是我无法过滤详细对象字段吗?还是我遗漏了什么。

谢谢

【问题讨论】:

    标签: acumatica


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2021-11-29
      • 2018-03-27
      • 1970-01-01
      • 2016-12-07
      • 2021-10-19
      • 1970-01-01
      • 1970-01-01
      • 2019-07-03
      • 2020-12-06
      相关资源
      最近更新 更多