Automation #8 - Auto Update Contact Fields

Automation #8 - Auto Update Contact Fields




This is a monthly series designed to help you get the best out of Desk. We take our cue from what's being discussed or asked about the most in our community. Then we find the right use cases that specifically highlight solutions, ideas and tips on optimizing your customer support with the automation capabilities of Zoho Desk.

Zoho Desk makes it easy to manage your contacts by assigning them to an account.
  • A Contact is an individual or customer that you provide support for through various channels in Zoho Desk.
  • An Account is a company or organization that the contacts belong to or represent.
Quite often, multiple contacts from the same organization raise requests and it makes sense to associate them all to the same account for better efficiency.
 
With SLAs in place you can easily map your deliverables and maintain consistency. When SLAs are applied to an Account, Desk ensures that every ticket originating from a contact mapped to that account, follows the SLA, and is resolved in time.

The other time this comes in handy is when you need to do mass updates. Let's say you need to update the "City" of a particular organization or Account, and also have it reflected in all the Account's Contact's pages as well. This is possible in two easy steps:
To create the workflow rule, perform the following steps:
  1. Go to Setup, and under Automation, click Workflows.
  2. On the left panel, under Workflows, click Rules > Create Rule.
    In the Basic Information section, perform the following steps:
  3. In the Module drop-down menu, select Accounts.
  4. Enter a name and description for the rule.
  5. If you want to activate the rule right away, select the Active checkbox. Else, you can just create the rule now and activate it later on the Rules page.
  6. Click Next.
    In the Execute on section, perform the following steps:
  7. Select the Create checkbox to execute this rule every time a new ticket is created.  
  8. Click Next.
  9. In the Criteria section, do not select any criteria and click "Next".
    In the Actions section, perform the following steps:
  10. Click the + icon under "Action" and select "New" next to Custom Functions
  11. Enter a name and description for the custom function.
  12. In the script window, input the Custom Function you find below:

    1. ORGID = Paste your OrgId;
    2. list = {0,1,2,3,4,5,6,7,8};
    3. for each  rec in list
    4. {
    5. start = rec * 100;
    6. search = zoho.desk.searchRecords(ORGID,"contacts",{"accountName":accname},start,100).getJSON("data");
    7. //info search;
    8. for each  contact in search
    9. {
    10. contactids = contact.getJSON("id");
    11. update =
    12. zoho.desk.update(ORGID,"contacts",contactids,{"city":city});
    13. info update;
    14. }
    15. }

  13. Click "Edit Arguments"
  14. In the Name field type Account Name, and from the Value drop-down list select Account Name under accounts module, add another column.
    In the next column, in the Name field type City, and from the Value drop-down list select "City" under Accounts module, and click Done.
  15. Click "Save" to save the custom function.
  16. Click "Save" again to save the workflow.
Important Note: In line 1, replace your OrgId. You can get your OrgID by navigating to Setup > Developer Space > API > OrgId.

Once the workflow rule is set, go to the Account page and edit the "City" field to add/change the value. The value of the City field will automatically get updated in the all the associated Contacts page. 
 
This specially comes in handy when you have direct assignment rules created based on Cities and not having the right city updated can affect the entire flow. In that case, you can set this easy workflow rule and have all your contacts updated in minutes and have your process in track.




                            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

                                        • Zoho Desk Virtual Meetup: US Central, October 5 - 7, 2021

                                          After the interactive Virtual Meetups in the other regions, we are starting with the US Central and Midwest regions from October 5 to October 7, 2021. The dates for other regions will be announced soon.  At this event, we will explore the topics which
                                        • Register for Zoho Desk Beta Community

                                          With the start of the year, we have decided to take a small step in making the life of our customers a little easier. We now have easy access to all our upcoming features and a faster way to request for beta access. We open betas for some of our features
                                        • Ask the Experts 10: A 5-hour online Q&A on Zoho Desk Best Practices

                                          Welcome to Zoho Desk's Ask the Experts session! This is a monthly discussion on our  forums; wherein a panel of experts will take on questions  specific to topics related to Zoho Desk. The panel will be available for a 5-hour period and will answer any questions posted here.   Let's begin the year learning some best practices from our experts. In this month's ATE we are opening the floor to questions on how to use Zoho Desk the best way.  If you have a business use case but not sure if Workflow is
                                        • Share your Zoho Desk story with us!

                                          Tell us how you use Zoho Desk for your business and inspire others with your story. Be it a simple workflow rule that helps you navigate complex processes or a macro that saves your team a lot of time; share it here and help the community learn and grow with shared knowledge. 
                                        • Ask the Experts 7: A 5-hour online Q&A on Telephony and Call Module

                                          Welcome to Ask the Experts session! This is a monthly discussion in forums; each session, a panel of experts will take questions on specific topics related to Zoho Desk. The panel will be available for a 5-hour period and answer any questions posted here. In this month's Ask the Experts, we will take questions on everything related to Telephony and the Call Module in Zoho Desk. We will discuss the following aspects:  Integration with different Telephony vendors Routing calls to agents Converting


                                        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