Deluge Help

Search Records in Quickbooks

Table of Contentsup


The intuit.quickbooks.searchRecords() task is used to search records from any of the supported modules in your QuickBooks account, directly from your Zoho Creator Application. For example, you can search for customers from the Customer module in quiockbooks with a given display name. To connect Zoho Creator with QuickBooks, create a new connection from the Setup - Connections page.

 Supported Modules

  • Customer
  • Vendor
  • Item
  • Invoice
  • Account
  • Employee
  • Department


<quickbooksResponse> = intuit.quickbooks.searchRecords(<quickbooksConnectionName>,<quickbooks CompanyId> , <Select Query>);

<quickbooksResponse> is the map variable returned as response. It contains the details of the fetched records.
<quickbooksConnectionName> referes to the connection name used to connect Zoho Creator with Quickbooks. Create a new connection from the Setup - Connections page.
<quickbooksCompanyId> 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.
<Select Query> in the format,
select <requiredColumns> from <moduleName> where <attribute name> = <value>
Refer the Quickboks API Guide for the attributes to be specified for each module.

 Example - Search records from quickbooks

A sample script to search records from the Quickbooks customer module with a given display name, is given below. You can execute this script from a Zoho Creator form by adding it to the required workflow section.

//returns a list of records with DisplayName ="Henry"
searchResponse = intuit.quickbooks.searchRecords("Zoho", "1241802285", "SELECT * FROM Customer where DisplayName='Henry'");

 Example - Get ID of the records

queryResponse = (searchResponse.get("QueryResponse")).toMap();
queryResponseList = queryResponse.get("Customer").toJSONList();
//iterate each value in list
for each rec in queryResponseList
recMap = rec.toMap();
id = recMap.get("Id");
info id ;

 Response Format

The response returned by Quickbooks will be in the format given below.

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

If for some reason, the execution fails, the response will be in the following format.

ERROR RESPONSE - For Invalid Parameter Name

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

Share this post : FacebookTwitter

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

Write to us: