似乎它的api不允许表单的查询过滤器:
select * from purchaseorder where APAccountRef.value='33'
在采购订单的情况下,这似乎意味着我需要将每个采购订单降低到我的服务器并扫描我需要的帐户,这是非常不理想的。是否有其他语法用于查询已编码的许多属性
"APAccountRef": {
"value": "33",
"name": "Accounts Payable (A/P)"
}
只有一个名称和值属性?
如果您参考文档:
它为您提供了所有字段的列表,以及filterable
字段列表。您的查询使用的字段不是Purchase Orders
的一部分:
AccountRef.value='39'
正确的字段是:
APAccountRef:
required
ReferenceType, filterable
Specifies to which AP account the bill is credited.
所以你的查询应该是:
SELECT * FROM purchaseorder WHERE APAccountRef = '39'