4D QuickBooks Integrator: Chart of accounts

How do I get a list of accounts in QuickBooks?

The ObjSearch component can be used to retrieve a list of accounts from QuickBooks. Below is some sample code (VB) to accomplish this:

  Dim i As Integer
  ObjSearch1.QueryType = qtAccountSearch
  ObjSearch1.MaxResults = 100


  For i = 0 To ObjSearch1.ResultCount - 1
    Account.QBResponseAggregate = ObjSearch1.ResultAggregate(i)
    'Now you can examine the Account object for the details
  Next i

We appreciate your feedback. If you have any questions, comments, or suggestions about this entry please contact our support team at support@4dpayments.com.