QBD查询文档

时间:2013-06-21 15:22:39

标签: intuit-partner-platform

我在这里阅读了有关创建QBD查询的文档:https://developer.intuit.com/docs/0025_quickbooksapi/0055_devkits/0100_ipp_.net_devkit/query_filters/quickbooks_desktop

此处提供完整的SDK文档:http://developer-static.intuit.com/SDKDocs/QBV2Doc/IntuitDataServicesSDK/

我正在尝试在C#和.Net SDK 2.0中构建一个查询,该查询从文本字段中获取客户编号并返回该客户的所有发票。这是我到目前为止所做的:

var qbdInvoiceQuery = new Intuit.Ipp.Data.Qbd.InvoiceQuery();   
qbdInvoiceQuery.Item = "1";
qbdInvoiceQuery.ChunkSize = "10";
var qbdInvoices = qbdInvoiceQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Invoice>(context).ToList();
grdQuickBooksInvoices.DataSource = qbdInvoices;

这很有效,但我收到所有发票。上面链接的查询示例很好,但我找不到CDCAsOf字段之外的过滤器文档。

1 个答案:

答案 0 :(得分:1)

您需要在“发票”查询中创建过滤器以获取属于特定客户的发票。你可以这样做。

<?xml version="1.0"?>
<InvoiceQuery xmlns="http://www.intuit.com/sb/cdm/v2"><IncludeTagElements>Invoice/Header/CustomerName</IncludeTagElements>
</InvoiceQuery>

感谢,
震动