Intuit partner platform 为客户查询作业

Intuit partner platform 为客户查询作业,intuit-partner-platform,Intuit Partner Platform,我试图查询特定客户的工作,但遇到了一个小问题。ParentRef似乎不可查询: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2014-02-19T10:20:31.635-08:00"> <Fault type="ValidationFault"> &

我试图查询特定客户的工作,但遇到了一个小问题。ParentRef似乎不可查询:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2014-02-19T10:20:31.635-08:00">
  <Fault type="ValidationFault">
    <Error code="4001">
      <Message>Invalid query</Message>
      <Detail>QueryValidationError: property 'ParentRef' is not queryable</Detail>
    </Error>
  </Fault>
</IntuitResponse>
然而,这是我唯一能想到的限制服务器端查询的方法。在旧世界中,我们向jobsapi提交了CustomerId:EQUALS:{id}过滤器,但现在客户/作业API已经合并。我的v3查询是SELECT*fromcustomer,其中Job=true,ParentRef='{id}',这似乎是一个合理的做法


我错过什么了吗?您能允许我们查询ParentRef吗?

类似的功能正常:

SELECT * FROM Customer WHERE FullyQualifiedName LIKE 'Your Customer Name:%'

如果您只有一个级别,则上述功能有效。试一试演员阵容:

if (null != cust.ParentRef && ((ReferenceType)cust.ParentRef).Value == c.Id)

例如,如果你正在构建一个treeview,就用递归方法将其包装起来。

的确,这是一个很好的解决方案,谢谢Keith!我本来希望不用一个“喜欢”就能解决它,但这让我们成功了。