Round robin lead assignment for leads generated via ZOHO Forms. #23

Round robin lead assignment for leads generated via ZOHO Forms. #23



We are up with the hack for this week.


All of us do various marketing strategies in fetching leads via various source by importing them, using APIs, web forms and also by adding them manually . While the leads are added we will also be assigning them to the users in our CRM.


We had an interesting conversation with one of our customers who use ZOHO FORMS and ZOHO CRM and have integrated them. Now the user is generating leads via ZOHO forms and needs to assign leads in round robin option inside CRM. We have approvals, workflows etc, from forms to CRM but we do not have lead assignment rule available for zoho forms as of now. 


While we are working on this feature we came up with a work around to do this from our end.


How to do it ?


Step 1 :


Go to setup—> Customisation —>  Modules and fields —>  Leads —> Hover next to lead source field and click on gear icon —> Edit properties —> click + and then add ZOHO forms as an option inside .


Step 2 : 


Go to forms and while creating a form add ZOHO forms as a value under lead source in the form that you create in ZOHO FORMS as well.


Step 3 :


Go to CRM —> tools —> setup —> Automation —> Workflow rules —> Create rules —> Select leads from the drop down —> Name the rule —> On a record action —> Create —>  Next —> Select Lead source from the drop down and set it as ZOHO forms —Next —> Instant action —> Custom function —> +New Custom Function —> Write your own —> 


1) choose module as 'leads' 

2)Give custom function name and click on 'free flow scripting' 

3) copy and paste the code below 


leadIdStr = input.leadId.toString();

firstRefRecordDetails = zoho.crm.getRecordById("Leads", 1106291000003879069);

firstOwner = ifnull(firstRefRecordDetails.get("SMOWNERID"),"");

if (firstOwner = "1246943000000071001")

{

UpOwner = "1246943000004176205";

}

if (firstOwner = "1246943000004176205")

{

UpOwner = "1246943000000071001";

}

updatefirstRef = zoho.crm.updateRecord("Leads", "1106291000003879069", { "SMOWNERID" : UpOwner });

mp = map();

mp.put("SMOWNERID", UpOwner);

updateResp = zoho.crm.updateRecord("Leads", leadIdStr, mp);

info mp;

info updateResp;


Note : 


1.) Create a lead in CRM and after creating it you will see a URL link at the top and will have a series of number like , https://crmplus.zoho.com/private7/index.do#crm/EntityInfo.do?module=Leads&id=1929381000001981001. Use that lead ID number in the line 


firstRefRecordDetails = zoho.crm.getRecordById("Leads", 1106291000003879069); and please make sure that sample lead record is never deleted from your CRM.


2.) Go to tools—> setup —> users and controls —> Users —> Click on the user name and copy the number from the link there as well and use that 


if (firstOwner = "1246943000000071001”) and then select the second user and copy that number and use it in 


UpOwner = "1246943000004176205”;











                            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