Zoho CRM Connector Examples
The ZappySys API Driver is a user-friendly interface designed to facilitate the seamless integration of various applications with the Zoho CRM API. With its intuitive design and robust functionality, the ZappySys API Driver simplifies the process of configuring specific API endpoints to efficiently read or write data from Zoho CRM.
On this page you will find some SQL examples which can be used for API ODBC Driver or Data Gateway API Connector.
Read all rows [Read more...]
SELECT * from Accounts
Update Owner of the record(s) - Account, Contacts, Deals, Leads (Update Lookup field) [Read more...]
This examples shows how to update a lookup type fields (e.g. Account, Contact, Owner) for any module. Lookup fields are jsonobject type of fields which has id, name and sometimes email (only for Owner). This example shows how to update using unique field (E.g. email, id or name). Below example shows how to set Owner of the Account (e.g.) 1558554000137221573. We will set owner to bob-the-salesman@abc.com (or you can set by id)
UPDATE Accounts
SET Owner='{email: "bob-the-salesman@abc.com"}'
--SET Owner='{id: "1558554000186378001"}' --you can also use Id
Where Id='1558554000137221573'
Update Account or Contact (Lookup field) by Name or Id for Deals [Read more...]
This examples shows how to update Account and Contact field on Deals module. We used name for account and id for contact just to show how unique field can be used.
UPDATE Deals
SET Account_Name='{"name": "Company ABCD"}', --by name or id
Contact_Name='{"id": "1558554000186378001"}' --by id
Where Id='1558554000137221573'
Create a Deal with Lookup fields (e.g. set Account, Contact, Owner etc by Id or Name) [Read more...]
This examples shows how to create a new record with Lookup field(s) e.g account, contact or owner.
INSERT INTO Deals(
Deal_name,
Amount,
Lead_Source,
Account_Name,
Contact_Name,
Owner
)
VALUES
(
'My Test Deal Creatyed on <<FUN_NOW>>', --deal name
1000.50, --amount
'Cold Call', --lead source
'{name:"ZappySys"}', --account name or use id '{id:"1558554000030180013"}'
'{id:"1558554000089352998"}' --contact id
'{id:"1558554000089352912"}' --owner id or use email {email: "bob-the-salesman@abc.com"}
)
Read single row by ID [Read more...]
SELECT * from Accounts Where Id=1558554000105110008
Read reacord(s) modified after certain date [Read more...]
SELECT * from Accounts WITH(ModifiedSince = '2020-01-07T00:00:00')
Read using COQL (Zoho Serverside Query Language) [Read more...]
You can write server side query so you dont have to read full data on client side. For COQL LIMIT clause must be 200 or less. For more information check this URL https://zappysys.com/links?url=https://www.zoho.com/crm/developer/docs/api/COQL-Overview.html
SELECT * from get_module_data_coql WITH(sql_query= 'select Last_Name, First_Name, Company from Leads where Company like ''Test'' limit 200')
Update table for specific record [Read more...]
Update Leads SET Designation='VP Sales', Company='Test' Where id=1558554000012181009
Update table for specific record (older version) [Read more...]
Update Leads SET id='1558554000012181009' /* id must be supplied */, Designation='VP Sales', Company='Test'
Get accounts modified after certain date [Read more...]
SELECT * from Accounts Where Account_Name LIKE 'Test%' WITH(ModifiedSince = '2020-01-07T00:00:00')
Search accounts by specific field (server side filter) [Read more...]
You can use criteria listed here https://www.zoho.com/crm/developer/docs/api/v2/search-records.html
SELECT * FROM search_Accounts WITH(criteria='Account_Name:starts_with:test')
Create a new record [Read more...]
INSERT INTO Accounts(Account_Name, Phone) VALUES('Company ABC','111-567-8888')
Create a new account record (with show output on / off) [Read more...]
INSERT INTO Accounts(Account_Name, Phone) VALUES('Company ABC','111-567-8888') WITH(Output=1)
Delete single record by Id [Read more...]
Delete exising record by Id (single row). You can supply upto 100 comma seperated Ids
DELETE FROM Accounts WHERE id=11111111111
Delete multiple records by Ids [Read more...]
This example shows how to delete Account Records by multiple Ids. You can supply upto 100 comma seperated Ids
DELETE FROM Accounts WITH(Id='11111,22222,33333')
Upsert account record (Update or Insert - based on unique field(s) for module) [Read more...]
UPSERT INTO Accounts(Account_Name, Phone) VALUES('Company ABC','111-567-8888') WITH(Output=1)
Upsert lead record (Update or Insert - based on unique field(s) for module) [Read more...]
UPSERT INTO Leads(Last_Name, Email) VALUES('Patel','zpatel@abc.com') WITH(Output=1)
Create new account(s) in BULK (read / write from external source) [Read more...]
This examples shows how to use SOURCE clause to read data from MS SQL Server (or other external system) and send data to Zoho using Bulk API
INSERT INTO Accounts
SOURCE(
'MSSQL' --ODBC or OLEDB
,'Data Source=localhost;Initial Catalog=Test;Integrated Security=true'
,'select ''Test Account-A'' as Account_Name,''111-111-1111'' as Phone
UNION
select ''Test Account-B'' as Account_Name,''222-222-2222'' as Phone
'
)
UPSERT (Update or insert) account(s) in BULK (read / write from external source) [Read more...]
This examples shows how to use SOURCE clause to read data from MS SQL Server (or other external system) and send data to Zoho using Bulk API. Record uniqueness is checked based on Unique field setup for module (i.e. email, account name, phone etc)
UPSERT INTO Accounts
SOURCE(
'MSSQL' --ODBC or OLEDB
,'Data Source=localhost;Initial Catalog=Test;Integrated Security=true'
,'select ''Test Account-A'' as Account_Name,''111-111-1111'' as Phone
UNION
select ''Test Account-B'' as Account_Name,''222-222-2222'' as Phone
'
)
Update Tag(s) for exising records (add or overwrite) [Read more...]
SELECT * FROM post_tags
WITH(
module='Accounts'
, ids='1558554000105151002'
, tag_names='mytag1,mytag2'
, over_write='true'
)
Getting Started with Examples
ZappySys API Driver is a powerful software solution designed to facilitate the extraction and integration of data from a wide range of sources through APIs. Its intuitive design and extensive feature set make it an essential asset for any organization dealing with complex data integration tasks.
To get started with examples using ZappySys API Driver, please click on the following applications:
Key features of the ZappySys API Driver include:
The API ODBC driver facilitates the reading and writing of data from numerous popular online services (refer to the complete list here) using familiar SQL language without learning complexity of REST API calls. The driver allows querying nested structure and output as a flat table. You can also create your own ODBC / Data Gateway API connector file and use it with this driver.
Intuitive Configuration: The interface is designed to be user-friendly, enabling users to easily set up the specific API endpoints within Zoho CRM without requiring extensive technical expertise or programming knowledge.
Customizable Endpoint Setup: Users can conveniently configure the API endpoint settings, including the HTTP request method, endpoint URL, and any necessary parameters, to precisely target the desired data within Zoho CRM.
Data Manipulation Capabilities: The ZappySys API Driver allows for seamless data retrieval and writing, enabling users to fetch data from Zoho CRM and perform various data manipulation operations as needed, all through an intuitive and straightforward interface.
Secure Authentication Integration: The driver provides secure authentication integration, allowing users to securely connect to the Zoho CRM API by inputting the necessary authentication credentials, such as API tokens or other authentication keys.
Error Handling Support: The interface is equipped with comprehensive error handling support, ensuring that any errors or exceptions encountered during the data retrieval or writing process are efficiently managed and appropriately communicated to users for prompt resolution.
Data Visualization and Reporting: The ZappySys API Driver facilitates the seamless processing and presentation of the retrieved data from Zoho CRM, enabling users to generate comprehensive reports and visualizations for further analysis and decision-making purposes.
Overall, the ZappySys API Driver serves as a powerful tool for streamlining the integration of applications with Zoho CRM, providing users with a convenient and efficient way to access and manage data, all through a user-friendly and intuitive interface.