CRM Hack #15: How to check for duplicates for contacts that are not converted from leads #15

CRM Hack #15: How to check for duplicates for contacts that are not converted from leads #15



Hello Everyone !

The leads module in Zoho CRM helps aggregate all the unqualified leads which is then qualified and converted to contacts by your sales team. However, the chances of running into a highly qualified lead upfront cannot be ruled out. Such situations prompt you to skip the lead creation process and create contacts directly. Taking the traditional route of qualifying a leads to contacts does have its own advantages. For instance, leveraging the deduplication option to eliminate duplicates from leads and converted leads. 

 

As deduplication is restricted to only the leads and converted leads , it doesn't work when a newly added lead is a duplicate of a contact record that was directly added in the Contact module. This week's hack uses on a Checkbox field and a custom function to overcome this limitation.This works irrespective of how you add the records - manually, API or web-form.

Here are the steps involved:

 

Step 1:

Go to Setup -> Customization -> Modules and Fields -> click on Leads -> -> drag and drop  a check box field from the left panel and name it as "Duplicate check " - ->   S ave the layout.




Step 2: 

Go to setup -> Developer Space -> Webforms -> open the web form - > and add the check box field inside the web form -> Click on field settings --> Check " Mark as hidden field" -> Click on Next --> Leave the "Request for Approval" option disabled--> Click on Save.-->   Update the source code to your website. 










Step 3:

Go to Setup-> Automation -> Workflow Rules -> Click on "+Create Rule" -> Select Leads from the drop down - > Add a Rule Name - > Click on Next --> Select "On record action" - > Select Create -> Click on Next -> Select "All Records" -> Click on Next -> From the "Instanc Actions" option, select "Custom Function" -> Clcik on "Write your own" - > Add a name for the custom function - > Click on "Free flow scripting" and add the below code: 

relcont = zoho.crm.searchRecords("Contacts", "(Email|==|" + email + ")");

relcontsize = relcont.size();

if (relcontsize>0)
{
update = zoho.crm.updateRecord("Leads", leadid.toString(), {"Duplicate":true});
}

Click on "Edit Arguments" at the top --> Choose Lead Id from the drop down and  name it as 'leadid'. From the same screen, click on "Add Argument" --> Choose Email from the dropdown and name it as 'Email' -> Click on Done--> Click on "Save and Associate" with the workflow.

 Now, when the leads come through web form, it checks for duplicates both in Leads and Contacts module, irrespective of it's a converted lead.., and creates a lead if there are no duplicates and if there are duplicates it still creates lead but it will have the duplicate check selected.

 You can now create a view based on that duplicate checkbox field .Associate the converted lead that already exists in the contacts, witan existing contact or create a new contact.

 Hope you found the hack useful!

 

Note: Please note that the custom function option is available only in the enterprise edition of CRM.





                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation
                                        • Sticky Posts

                                        • ZUG (Zoho User Group) In-person Meetups - Learn, Share, and Discuss All Things Zoho

                                          Hi, We hope you are all doing well. We are excited to announce the second leg of our in-person Zoho User Group (ZUG) meetups in your region. A quick update: Our first leg of meetups in 2024 reached completion, and Zoho experts had the opportunity to meet
                                        • Tip #35 - On using Kanban View in Zoho CRM

                                          Hi folks,  It's that time of the week again, and I am back with a quick tip about using Kanban View in Zoho CRM. If you think you missed any of our previous weeks' tips, you can read them here.  Tip #35 - On using Kanban View in Zoho CRM You deal with so many records in CRM every single day! When you click open each module in Zoho CRM, you have hundreds of records, each in various stages of your sales pipeline. Wouldn't it be cool if you had them all sorted automatically without having to filter
                                        • ZUG (Zoho User Group) In-person Meetups - Learn, share and discuss all things Zoho

                                          Hi, Hope you all are well. We're excited to announce our second leg of in-person Zoho User Group (ZUG) meetups in your region. A quick update - Our first leg of meetups in 2024 progressed and reached completion smoothly, where Zoho experts had the opportunity
                                        • ZUG (Zoho User Group) In-person Meetups - Learn, share and discuss all things Zoho

                                          A big warm hello to the Zoho Community, and Happy new year to all of you! We're thrilled to let you know that our ZUG Meetups for 2024 have almost begun, and we can't wait for you to be a part of them. We have some interesting topics in store for this
                                        • Cloning Email Templates across modules in Zoho CRM.

                                          The option of cloning email templates across modules has been a long standing feature request from the Community. Thank you all for being so patient with us. We are happy to inform you all that this enhancement has been rolled out. Just in case you haven't noticed it already, cloning email templates is possible now! Cloning is useful because it cuts down the hassle of having to create the same email templates again for different modules. Here are the steps: Navigate to Settings---> Customization--->Templates


                                        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