2017-07-07 36 views
0

我想从快速手册中获取所有库存项目,只有全名和数量在手字段中,以便获得较小的xml。你知道如何做到这一点?Quickbooks QBXML - 如何排除字段

这是XML的查询请求:

<?xml version="1.0" encoding="utf-8"?> 
<?qbxml version="10.0"?> 
<QBXML> 
    <QBXMLMsgsRq onError="stopOnError"> 
     <ItemInventoryQueryRq> 
     </ItemInventoryQueryRq> 
    </QBXMLMsgsRq> 
</QBXML> 

回答

3

您可以使用此标记哪些字段要包括专门挑:

<IncludeRetElement>

例如,这得到发票,但只有TxnID,EditSequenceRefNumber字段:

<?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> 
从这个wiki

例子:

你也可能要参考Intuit的文件,显示这一点,QuickBooks的OSR:

相关问题