QbXML for Querying for Customers, and returning custom fields

From ConsoliBYTE Wiki
Jump to: navigation, search

If you want QuickBooks to return custom fields (DataExt nodes) you need to specify <OwnerID>0</OwnerID> in your outgoing qbXML request.

 
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="8.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <CustomerQueryRq requestID="1234abcd">
      <MaxReturned>25</MaxReturned>
      <ActiveStatus>All</ActiveStatus>
 
      <OwnerID>0</OwnerID>
    </CustomerQueryRq>  
  </QBXMLMsgsRq>
</QBXML>