InteGreat 1: Integrate Zoho Creator with Zoho CRM

InteGreat 1: Integrate Zoho Creator with Zoho CRM



Hi everyone,

Today, we'll look at how to integrate your Zoho Creator application with Zoho CRM. As you might already know, we offer pre-built integrations that you can use to integrate with most of our Zoho products and other third-party services. So that, you don't have to spend a lot of time writing code to integrate them. Also, you always have the option to use REST API to connect all your favorite apps, if you don't find a pre-built integration defined for it.

Understanding the Integration field:


The integration field enables you to lookup data that is stored in an external service. This field is available both in our form-builder and workflow builder. All you need to do is drag and drop this field, select the required module, and fetch the data you need. In this way, you will be able to establish a relation between a record in your form (that's in your Zoho Creator app) with a record in the selected module of the external service.

Currently, we offer pre-built integration for the following services:
  • Zoho CRM

  • Zoho Recruit

  • Salesforce

  • Quickbooks

  • Zoho Desk

  • Zoho Books

  • Zoho Subscriptions

  • Clicktell

  • Twilio

  • Screen Magic

  • ClockWorkSMS

Integrating with Zoho CRM:


Once you have established a relationship between Zoho Creator and Zoho CRM, you can perform the following tasks:
  1. Add data to a CRM module 

  2. Fetch data from a CRM module

  3. Update Data to a CRM module

  4. Search CRM module and use data in Zoho Creator 

 

Let's look at each of them in detail.

1. Add data to a CRM module:

Overview:

 

Using the integration task, you can perform various automatic actions in Zoho CRM without any manual effort. And, one of those actions is to automatically Add data to a Zoho CRM Module. That's right. You can add a record in Zoho Creator form(by submitting the form) and have it simultaneously added in Zoho CRM without re-entering data for the second time in CRM. You can achieve this by using zoho.crm.create() task in Zoho Creator.

Syntax:

  1. <variable>=zoho.crm.create(<module_name>,<field_values>,[<duplicate_check>]);
Use Case:

Let's say you have a few product-related ebooks on your website and whenever a new customer fills the sign-up form to download the ebook, you want to capture the customer details in the Zoho CRM’s "Leads" module.  


Let's assume the sign-up form has the following fields:
  1. Name (Single Line field type)

  2. Phone (Single Line field type)

  3. Email Address (Email field type)


To create this record simultaneously in the Lead module of Zoho CRM, you need to execute zoho.crm.create() task in the "On Success" actions block of the Zoho Creator form. Thus, whenever the customer fills up the sign-up form and submits the form, it creates a record in Zoho CRM with the related details.

You can achieve by using the following script:

  1. leadinfo = { "Last Name" : input.Name, "Phone" : input.Phone, "Email" : input.Email_Address,
  2. "Country" : input.Country };
  3. response = zoho.crm.create("Leads", leadinfo); 

For more details on this task please click here.


2. Fetch data from a CRM module:


Similarly, you can fetch data from Zoho CRM and have them populated in a Zoho Creator form. Not only that, you can fetch records from multiple modules at the same time. You can achieve this by using zoho.crm.getRecords() task in Zoho Creator. 

Syntax:

  1. <response>=zoho.crm.getRecords(<module_name>,[<from_index>],[<to_index>]);

Use Case:

Let's say you need to fetch the Names of customer who belongs to a particular county (let's say India) and populate them in a drop down field in Zoho Creator from. That is, you need to fetch the data from Zoho CRM Contacts module and populate it whenever a user accesses the Zoho Creator form.

Let's assume the Customer Details form has the following fields:

  • Customer Name (Dropdown field type)

  • Phone (Single line field type)

  • Email Address (Email field type)


You can fetch the Last Name of each of you Client (from the Contacts module) and populate the Customer Name field using the ui.add() task. You can achieve this by adding the following script in the “On Load” actions block of the Zoho Creator form.

You can achieve by using the following script:


  1.  contactslist=zoho.crm.getRecords("Contacts");
  2. for each ContactRecord in contactslist 
  3. {
  4.   countrylist=list();
  5. if(ContactRecord.get("Mailing Country")== "India")
  6. {
  7. //info ContactRecord.get("Last Name");
  8. Customer_Name:ui.add(ContactRecord.get("Last Name"))
  9. }
  10. }

For more details on this task please click here. 



3. Update Data to a CRM module:

Next, let's look at how to update records in Zoho CRM by simply submitting a form with relevant details in Zoho Creator. You can achieve this by using zoho.crm.updateRecord() task in Zoho Creator.

Syntax:

  1. <response> =zoho.crm.updateRecord(<module_name>, <record_ID>, <New values as map object>);
Use Case:

Let's say you need to update the Contact Number of your customers in Zoho CRM whenever they update it by submitting a form in Zoho Creator.

Let's assume you have a Zoho Creator Form with the following fields:

  1. Customer Name(Zoho CRM Leads field type)
  2. Contact Number (Single Line field type)
You can update the Contact Number in the Leads module using the zoho.crm.updateRecord() task. You can achieve this by adding the following script in the "On Success” actions block of the Zoho Creator form.

  1. leadinfo = {"Phone":input.Contact_Number}; 
  2. response = zoho.crm.updateRecord("Leads",input.Customer_Name,leadinfo); 
For more details on this task please click here.



4. Search CRM Module and use data in Zoho Creator :

You can search for records in Zoho CRM by adding a specific criteria and populate them in Zoho Creator Form fields. For this, you need to specify the module name from which you want to search the records along with the optional start and end index numbers. This can be achieved using zoho.crm.searchRecords() task in Zoho Creator.

Syntax:

  1. <response>=zoho.crm.searchRecords(<module_name>, <criteria>, [<from_index>],[<to_index>]);

Let's say you want to fetch the details of all the customers whose Email Id contains ".org" (assuming they are non-profit customers) from the Contacts module. To achieve this, you can add the following script in the“On Load” actions block of the Zoho Creator form.

Let's assume we have a form called Qualified Non-Profit Customers with the following fields:

  1. Non profit contacts (Dropdown field)
  2. Qualify for Discount (Decision box)

  1. CRMresponse = zoho.crm.searchRecords("Contacts", ("(Email|contains|.org)"));
  2. for each contactval in CRMresponse
  3. {
  4. //info contactval.get("Full Name");
  5. Non_profit_contacts:ui.add(contactval.get("Full Name"));
  6. }
For more details on this task please click here.

Hope this post on Zoho CRM integration would be useful to many of you. If you have any doubts or queries, please feel free to add them as comments below. We would be happy to address them all.










                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                              Zoho TeamInbox Resources

                                                Zoho DataPrep Resources



                                                  Zoho CRM Plus Resources

                                                    Zoho Books Resources


                                                      Zoho Subscriptions Resources

                                                        Zoho Projects Resources


                                                          Zoho Sprints Resources


                                                            Qntrl Resources


                                                              Zoho Creator Resources


                                                                Zoho WorkDrive Resources



                                                                  Zoho Campaigns Resources

                                                                    Zoho CRM Resources

                                                                    • CRM Community Learning Series

                                                                      CRM Community Learning Series


                                                                    • Tips

                                                                      Tips

                                                                    • Functions

                                                                      Functions

                                                                    • Meetups

                                                                      Meetups

                                                                    • Kbase

                                                                      Kbase

                                                                    • Resources

                                                                      Resources

                                                                    • Digest

                                                                      Digest

                                                                    • CRM Marketplace

                                                                      CRM Marketplace

                                                                    • MVP Corner

                                                                      MVP Corner

                                                                    





                                                                    




                                                                        Design. Discuss. Deliver.

                                                                        Create visually engaging stories with Zoho Show.

                                                                        Get Started Now