Identify duplicates between leads and contacts modules | Use Cases - Zoho CRM

Identify duplicates between leads and contacts modules

Edition: Enterprise | Industry: Travel | Feature: Workflow rule and Functions


Scenario
Joshua Baker is a sales manager at an online travel agency that offers customized tour packages. The agency has a webform on its website through which interested people inquire about tour packages. Qualified inquiries (leads) are converted as contacts and a new deal is created. However, during this process, some duplicates are created in the database. For example, Kane Wilson inquired about and purchased a tour package last summer. Now, though he is already a customer in the database, when he makes another inquiry through the webform, his details are again captured as a new lead.  

Requirements
Joshua wants to:
  1. Identify the duplicate entries among customers and new inquiries
  2. Merge the duplicate entries
Solution
The webform captures the new inquiries in the Leads module and the customers (converted leads) in the Contacts module. Joshua creates a checkbox field named "Duplicates" in the Leads module.
 
1. Identifying duplicates between Leads and Contacts modules
The deduplication tool can identify duplicates within a single module, but you can use custom function to do it across multiple modules. So, in this case every time a new lead enters through the webform, a record is created in the Leads module and a custom function checks for duplicates in the Contacts module. In case a duplicate is found, the Duplicate checkbox field is marked.

a. Create a Custom Function to check the duplicate entries.
  1. Go to Setup > Developer Space Functions.
  2. Write the below function in the Deluge Script Editor.

    relcont = zoho.crm.searchRecords("Contacts", "(Email:equals:" + email + ")");
    relcontsize = relcont.size();
    if (relcontsize>0)
    {
    update = zoho.crm.updateRecord("Leads", leadid.toString(), {"Duplicate":true});
    }

  3. Click Edit Argument.
  4. Set the arguments to be used in the script. 

  5. Click Save.
 b. Create a workflow rule       

Module
Leads
Rule Name
Duplicate check
When to execute
Record action > Create
Condition
All leads
Actions
Functions > Duplicate 


2. Merging the duplicate records
In the Leads module, create a list view to filter the duplicate entries (Criteria: Duplicate is Selected). During Lead Conversion, you can either merge it with the existing contact or create a new contact. 



    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION





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

                        Write to us:  support@zohoforms.com


                              



                            



                          Manage your brands on social media

                              Zoho Marketing Automation

                                Zoho Sheet Resources

                                 




                                    Zoho Forms Resources


                                      Secure your business
                                      communication with Zoho Mail


                                      Mail on the move with
                                      Zoho Mail mobile application

                                        Stay on top of your schedule
                                        at all times


                                        Carry your calendar with you
                                        Anytime, anywhere




                                              Zoho Sign Resources

                                                Sign, Paperless!

                                                Sign and send business documents on the go!

                                                Get Started Now


                                                    Zoho SalesIQ Resources



                                                        Zoho TeamInbox Resources



                                                                Zoho DataPrep Resources



                                                                  Zoho DataPrep Demo

                                                                  Get a personalized demo or POC

                                                                  REGISTER NOW


                                                                    Design. Discuss. Deliver.

                                                                    Create visually engaging stories with Zoho Show.

                                                                    Get Started Now










                                                                                          • Related Articles

                                                                                          • FAQs: Leads Management

                                                                                            What are Leads? Leads are the unqualified contacts or sales opportunities in your business. They are the raw details gathered about individuals or representatives of organizations collected from trade shows, seminars, advertisements and other ...
                                                                                          • Customizing Modules

                                                                                            Modules in Zoho CRM, let you categorize and track various aspects of your business such as Sales, Marketing, Customers, Products, Meetings and the like. Modules in Zoho CRM are represented in the form of tabs such as Leads, Contacts, Deals, Tasks ...
                                                                                          • Standard Modules & Fields

                                                                                            The standard modules in Zoho CRM: Leads Accounts Contacts Deals Campaigns Forecasts Cases Solutions Products Price Books Quotes Reports Invoices Vendors Purchase Order Sales Orders Tasks Dashboards Documents Calls Meetings The following tables give ...
                                                                                          • Can I associate a Deal with Contacts in Zoho CRM without creating an account?

                                                                                            Yes, you can associate deals with contacts without creating an account in Zoho CRM.   If your organization deals directly with customers in a B2C scenario, the best way to associate deals without an account is to disable the Accounts module in your ...
                                                                                          • De-duplicate records (Auto-merge duplicates)

                                                                                            In case you are not sure which records have been duplicated, you can let CRM run a check on modules using the De-duplicate tool. CRM will automatically find and merge exact matches. In case of conflicts in field values, you must manually resolve the ...
                                                                                          Wherever you are is as good as
                                                                                          your workplace

                                                                                            Resources

                                                                                            Videos

                                                                                            Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                            eBooks

                                                                                            Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                            Webinars

                                                                                            Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                            CRM Tips

                                                                                            Make the most of Zoho CRM with these useful tips.



                                                                                              Zoho Show Resources