Skip to content
LogoLogo

Zoho CRM app

The Zoho CRM app gives workflows tools that make leads in Zoho CRM. It connects to Zoho with an OAuth client that the person who installs the app makes in Zoho.

How to send leads to Zoho CRM gives the steps.

Manifest

PropertyValue
handlezoho-crm
nameZoho CRM
scopesNone. The app asks for no access to the project data.
offlineAccessNot set
eventsNone
slotsapp-home
workflowToolscreate_lead, check_connection

See App manifest for each property.

Slot

LocationTitleHeightWhat it shows
app-homeZoho CRM connection360The app page. See App page.

The height is in pixels.

App page

PartWhat it does
Redirect URI:The URL to give to the OAuth client in Zoho: <app URL>/oauth/callback.
Client IDThe client ID of the OAuth client.
Client secretThe client secret of the OAuth client. The page never shows a saved secret.
Save clientStores the client. After this, the page shows Client ID <client ID>, client secret set.
Replace clientShows the client form again, with a Cancel button. When the installation has a connection, the form shows Saving a new client disconnects Zoho CRM.
Zoho data centreThe data center of the Zoho account. See Data centers. The default is us.
Connect Zoho CRMOpens a new window at the sign-in page of Zoho. Shows when a client is stored and the installation has no connection.
Account lineConnected to <organization> through <accounts server>. When Zoho gives no organization name, Zoho CRM replaces it.
Test connectionGets an access token from Zoho, and reads the name of the Zoho organization.
DisconnectRemoves the connection. See Removal of the connection.

Data centers

The Zoho data centre list holds these values. The app sends the person to the accounts server of the data center that they choose.

ValueName in the listAccounts server
usUnited States (zoho.com)https://accounts.zoho.com
euEurope (zoho.eu)https://accounts.zoho.eu
inIndia (zoho.in)https://accounts.zoho.in
auAustralia (zoho.com.au)https://accounts.zoho.com.au
jpJapan (zoho.jp)https://accounts.zoho.jp
ukUnited Kingdom (zoho.uk)https://accounts.zoho.uk
caCanada (zohocloud.ca)https://accounts.zohocloud.ca
saSaudi Arabia (zoho.sa)https://accounts.zoho.sa
cnChina (zoho.com.cn)https://accounts.zoho.com.cn

The app accepts a connection only from one of these accounts servers. The app calls Zoho CRM at the API domain that Zoho gives for the connection.

Zoho scopes

The app asks Zoho for these scopes, with access_type=offline. Zoho then gives a refresh token:

ScopeUse
ZohoCRM.modules.leads.CREATEMake leads.
ZohoCRM.modules.leads.READRead leads.
ZohoCRM.org.READRead the name of the Zoho organization.

Zoho shows the consent page each time that a person connects.

Workflow tool create_lead

PropertyValue
Tool nameapp.<installation slug>.create_lead, for example app.zoho-crm.create_lead
Label in workflowsZoho CRM: Create Zoho lead
Effectwrite

The tool makes one lead in the Leads module of Zoho CRM.

Arguments

NameLabelTypeRequiredZoho field
lastNameLast namestringYesLast_Name
firstNameFirst namestringNoFirst_Name
emailEmailstringNoEmail
companyCompanystringNoCompany

The tool does not send an empty argument to Zoho.

Output

NameLabelTypeDescription
zohoLeadIdZoho lead idstringThe ID of the new lead in Zoho. test-run in a test run.

A test run of a workflow does not make a lead. The tool returns { "zohoLeadId": "test-run" }. It does not read the connection. It still fails when lastName is empty.

Errors

MessageWhen
lastName is requiredlastName is empty.
Connect Zoho CRM on the app’s page in this project firstThe installation has no connection.
Save your Zoho OAuth client on the app’s page in this project firstThe installation has no client.
Zoho refused the request: <error>Zoho did not give an access token for the connection.
Zoho answered without an access tokenZoho gave no access token for the connection.
Zoho CRM refused the lead (<status>)Zoho CRM did not make the lead.
Zoho CRM could not be reachedThe app cannot reach Zoho CRM.

Workflow tool check_connection

PropertyValue
Tool nameapp.<installation slug>.check_connection, for example app.zoho-crm.check_connection
Label in workflowsZoho CRM: Check Zoho connection
Effectread

The tool has no arguments.

Output

NameLabelTypeDescription
connectedConnectedbooleantrue when Zoho gives an access token, and Zoho CRM answers the request for the organization.
organizationZoho organisationstringThe name of the Zoho organization. Empty when the installation has no connection.

The tool does not fail when the connection does not operate. It returns connected: false.

Data that Picked keeps

The app keeps the data of each installation in labels of the installation in Picked:

LabelTypeSecretValue
zoho.client_idtextNoThe client ID of the OAuth client.
zoho.client_secrettextYesThe client secret of the OAuth client.
zoho.connectionjsonYesThe connection: accountsServer, apiDomain, refreshToken, connectedAt and organization.

The page of the app gets the client ID, and only the fact that a secret is set. See How to store data for an installation.

New client

Save client with a new client does these things:

  1. The app stores the new client ID and client secret.
  2. When the installation has a connection, the app tells Zoho to revoke the refresh token.
  3. The app deletes zoho.connection.

After this, the installation has no connection.

Removal of the connection

Disconnect tells Zoho to revoke the refresh token. It then deletes zoho.connection. The client stays.

Removal of the app from the project also tells Zoho to revoke the refresh token. Picked then deletes all of the labels of the installation.

The app ignores the answer from Zoho. When Zoho does not revoke the token, Picked still deletes the connection.

Messages

MessageWhen
Saved your Zoho OAuth clientSave client is complete.
Enter the client ID and client secret of your Zoho OAuth clientThe client ID or the client secret is empty.
Picked refused the client: <reasons>Picked did not accept the labels of the client.
Picked could not save the client; save it againPicked did not store the client.
Save your Zoho OAuth client firstConnect Zoho CRM started with no client.
Unknown data centreThe data center is not in the list.
Waiting for Zoho…The new window of Connect Zoho CRM is open.
Connected to <organization>The connection, or the test of the connection, is complete. Connected to Zoho CRM when Zoho gives no organization name.
Testing…Test connection started.
Zoho answered without an access tokenTest connection got no access token from Zoho.
Zoho CRM could not be reachedTest connection cannot reach Zoho CRM.
Zoho sent no codeZoho sent the window back with no authorization code.
This connection link has expired or was opened in another browser; start againThe window is too old, or it is in a different browser.
The app could not start connectingThe window did not get the sign-in address of Zoho.
Allow pop-ups to connectThe browser did not open the window.
The connection window closed. If you finished connecting there, it shows hereThe window closed before it sent a result.
Zoho named an accounts server the app does not trustThe accounts server is not in Data centers.
Zoho answered without a refresh token; connect againZoho did not give a refresh token.
Zoho refused the request: <error>Zoho refused the authorization code or the refresh token. When Zoho gives no error, the message is Zoho refused the request.
Zoho could not be reachedThe app cannot reach the accounts server.
Zoho CRM could not be connectedThe connection failed for a different reason.
Zoho CRM is not connectedTest connection with no connection.
Zoho CRM answered <status>Zoho CRM refused the request for the organization.
DisconnectedDisconnect is complete.
Sign in againThe session of the page expired.

When Zoho sends an error in place of a code, the window shows the value of that error.