Search records

Search records in Quickbooks


Search records in Quickbooks using a criteria.

Note: This task is applicable only to Zoho Creator.


<variable> = intuit.quickbooks.searchRecords(<quickbooks_connection>, <company_ID><criteria>);


ParameterDescriptionData type


is the variable which will hold the response returned by Quickbooks.



is the name of the Quickbooks connection.


refers to the unique ID generated by Quickbooks for each account.

You can find this under Your Company -> Account and Settings -> Billing & Subscription -> Company Id in your Quickbooks account.



is the criteria based on which records will be searched.

The criteria must be in the following format:
"SELECT <columns_seperated_by_comma> FROM <module> WHERE <field>=<'value'>"

The specified columns' values will be returned from the specified module from the records which meet the criteria.

To retrieve values of all the columns, specify an asterisk *. For example: "SELECT * FROM <module> WHERE <field>=<'value'>" 

Following are the names of applicable modules.




AccountEmployee Department

Search records by criteria in Quickbooks

The following snippet searches for records which meet the criteria, and returns the values for the specified columns. 

response = intuit.quickbooks.searchRecords("Quickbooks", "1241802285", "SELECT * FROM Customer WHERE DisplayName='Henry'");


"Quickbooks"is the name of the Quickbooks Connection
"1241802285"is the company ID of the account in which the records will be searched
*values of all the fields will be included in the response
"Customer​"is the module in Quickbooks, where the records will be searched
DisplayName='Henry'is the criteria based on which the record will be fetched.

Response Format

Following is a sample success response returned by Salesforce:

   "QueryResponse":"{"   Customer":"[{"   ShipAddr":{  
      "Line3":"123 street",
      "Line2":"Building 1",
      "Line1":"450 7th StreetnWashington DC",
      "name":"Indian Rupee",

The following is a sample failure response returned due to invalid paramter name:

"   Detail":"Property Name:Can not instanti specified is unsupported or invalid",
   "Message":"Request has invalid or unsupported property",

Related Links

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: