Quickbooks QBXML - 如何排除字段
Quickbooks QBXML - how to exclude fields
我想从只有全名和手头数量字段的 quickbooks 中获取所有库存项目,以便获得更小的 xml。你知道如何实现吗?
这是xml查询请求:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="10.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ItemInventoryQueryRq>
</ItemInventoryQueryRq>
</QBXMLMsgsRq>
</QBXML>
您可以使用此标签来具体选择要包含的字段:
<IncludeRetElement>
例如,这会获取发票,但只有 TxnID
、EditSequence
和 RefNumber
字段:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<InvoiceQueryRq requestID="abcd1234">
<TxnID>ABCD-1234</TxnID>
<IncludeRetElement>TxnID</IncludeRetElement>
<IncludeRetElement>EditSequence</IncludeRetElement>
<IncludeRetElement>RefNumber</IncludeRetElement>
</InvoiceQueryRq>
</QBXMLMsgsRq>
</QBXML>
来自此维基的示例:
- http://www.consolibyte.com/docs/index.php/QbXML_for_Querying_for_Invoices,_and_limiting_returned_info
- http://www.consolibyte.com/docs/index.php/Example_qbXML_Requests
您可能还想参考说明这一点的 Intuit 文档,即 QuickBooks OSR:
我想从只有全名和手头数量字段的 quickbooks 中获取所有库存项目,以便获得更小的 xml。你知道如何实现吗?
这是xml查询请求:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="10.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ItemInventoryQueryRq>
</ItemInventoryQueryRq>
</QBXMLMsgsRq>
</QBXML>
您可以使用此标签来具体选择要包含的字段:
<IncludeRetElement>
例如,这会获取发票,但只有 TxnID
、EditSequence
和 RefNumber
字段:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<InvoiceQueryRq requestID="abcd1234">
<TxnID>ABCD-1234</TxnID>
<IncludeRetElement>TxnID</IncludeRetElement>
<IncludeRetElement>EditSequence</IncludeRetElement>
<IncludeRetElement>RefNumber</IncludeRetElement>
</InvoiceQueryRq>
</QBXMLMsgsRq>
</QBXML>
来自此维基的示例:
- http://www.consolibyte.com/docs/index.php/QbXML_for_Querying_for_Invoices,_and_limiting_returned_info
- http://www.consolibyte.com/docs/index.php/Example_qbXML_Requests
您可能还想参考说明这一点的 Intuit 文档,即 QuickBooks OSR: