简体   繁体   English

如何通过QuickBooks-online API SDK在商品查询中指定FullyQuailifiedName

[英]How do you specify the FullyQuailifiedName in an Item Query via the QuickBooks-online API SDK

We have a test C# VS2013 web program that works somewhat based on the SDK sample. 我们有一个测试的C#VS2013网络程序,该程序在一定程度上基于SDK示例。

We are having an issue in trying to Query via the FullyQualifiedName (ie Major:Minor). 我们在尝试通过FullyQualifiedName(即Major:Minor)进行查询时遇到问题。

Select * From Item WHERE Name = '" + pItemName + "' MaxResults 1

works but 起作用但是

Select * From Item WHERE FullyQualifiedName = '" + pItemName + "' MaxResults 1

fails with the ValidationException . 失败,返回ValidationException

This is true for pItemName = 'Test' or 'Major:Minor' . 对于pItemName = 'Test' or 'Major:Minor'这是正确pItemName = 'Test' or 'Major:Minor'

Can someone please tell me how to code the query for a FullyQualifiedName? 有人可以告诉我如何为FullyQualifiedName编码查询吗?

According prod docs, this field is filterable. 根据prod docs,此字段是可过滤的。 Ref - https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/030_entity_services_reference/item 参考-https: //developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/030_entity_services_reference/item

It looks like a bug in service. 看起来像是服务中的错误。 I've informed this to dev team. 我已将此通知开发团队。 I'll update this post asap. 我将尽快更新此帖子。

Request select * from Item where FullyQualifiedName='Item_1af77Test4' 要求从其中FullyQualifiedName ='Item_1af77Test4'的项目中选择*

Respose Respose

<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2013-12-23T23:04:41.421-08:00">
  <Fault type="ValidationFault">
    <Error code="4001">
      <Message>Invalid query</Message>
      <Detail>QueryValidationError: Property FullyQualifiedName not found for Entity Item</Detail>
    </Error>
  </Fault>
</IntuitResponse>

EDIT As of now, you can't use this FullyQualifiedName as a filterable attribute. 编辑截至目前,您不能将此FullyQualifiedName用作可过滤属性。 Confirmed. 证实。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM