acumatica - 在“详细信息”与“顶级”字段中获取请求 $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',仅仅是我无法过滤详细对象字段吗?或者有什么我想念的。
谢谢
解决方案
你不应该按细节过滤。不支持。您可以按链接实体进行过滤(在您的示例中,它可以通过联系电子邮件进行过滤)。
推荐阅读
- php - simplexml_load_file():无法启用加密
- javascript - 如何将我的项目的最新版本推送到 repo?
- swift - Watson VisualRecognition 无法对图像进行分类,给出错误 400(使用 swift)
- c# - ExcelReaderFactory,从 SftpFileStream 读取
- java - 使用带有球衣的 Spring 时添加 @Provider
- c# - 带有视频文件块的 Facebook AdVideo 上传异常
- laravel - 自定义 css 和 js 文件未在 laravel 中加载。我怎样才能解决这个问题?
- android - react-native 3.0的输入框中的可搜索下拉值未更新
- java - JPA“更新”查询卡住并锁定所有数据库
- ios - TouchUpInside 事件未针对整个按钮框架触发