Creating Functions - Zoho Desk Knowledgebase

Creating Functions in Zoho Desk

Functions are pluggable workarounds that let you accomplish tasks that is not doable out-of-the-box. For example, let' s assume that you want to prioritize customer tickets based on their sales probability in Zoho CRM. However, this option cannot be accomplished in Zoho Desk. So how do you do it? Your solution: Functions

All about functions
Functions are an implementation of serverless architectures where Zoho Desk dynamically manages the provisioning of servers. You can write functions using the Deluge script and run the code (proprietary within Zoho Desk) without worrying about deploying it in servers. This provides you with ideal business implementations, which sounds quite pleasant to the ears and probably light on the budget as well. 

Why Functions?
  1. Provides immense flexibility of accomplishing tasks when met with specific criteria or automatically on a daily, weekly, monthly, or yearly intervals.
  2. Empowers you to explore alternative ways of solving a help desk problem.
  3. Eliminates the need to wait for a feature to be built into the product. You have more control over what you want to get done. After all, requirements differ from business to business.

Using Functions
Functions can be used in 3 places, namely:
  1. Workflow rules
  2. Blueprints
  3. Schedules

In workflow rules, you can set up functions such that when it matches certain criteria, Zoho Desk automatically triggers the function and updates the corresponding record. Similarly, when used in blueprints, functions can be triggered by completing a transition. In schedules, functions can be triggered either at a particular time or on a recurring basis.

Creating Functions
Functions can be created using the Deluge Script builder that provides a drag-and-drop user interface to add Deluge scripts without the need to learn or remember the Deluge syntax and functions.

To create a function:
  1. Click the Setup icon (  ) in the top bar.
  2. Click Functions under Developer Space.
  3. Click New Function in the upper-right corner.



  4. In the New Function page, do the following:
    1. Give a Name and Description (optional) for the function.
    2. Choose the Category where the function is meant to be added.
      If the function is going to be added in workflows or blueprints, choose 
      Automation; otherwise, choose Schedules.
    3. Select the Module for which you want to trigger the function.
      This option is available only when you select Automation in Step 6.



    4. Click the Edit Arguments icon (  ).
      This option is available only when you select Automation in Step 6.
    5. In the Edit Arguments window, set the arguments to be used in the script, with field name or custom value in the respective module.
    6. Write your required function in the Deluge Script Editor.
    7. Click Save & Execute Script to validate your code.
  5. Click Save.
    The function gets listed in the List View of the Functions page.

Note:
  1. The functions specified to be used at a particular location cannot be used elsewhere. For example: a function configured for automation cannot be used in Schedules.

Deploying Functions in Workflow Rules
As a Zoho Desk administrator, you can deploy thoroughly tested custom functions in workflow rules.

To associate a custom function to a workflow rule:
  1. Click the Setup icon (  ) in the top bar.
  2. Click Workflows under Automation.
  3. Click Create Rule on the Workflow Rules page.
  4. Enter the basic information about the workflow and then click Next.
  5. In the following page, specify the action for execution and rule criteria.
  6. Under Actions, click the Add icon (  ) and then select Existing corresponding to Custom Functions.
  7. Select an existing custom function.
  8. Click Save.

Deploying Functions in Schedules
As a Zoho Desk administrator, you can deploy thoroughly tested custom functions in schedules. To learn more about this, click here.

    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

                                                                                          • Creating and Managing Schedules in Zoho Desk

                                                                                            Schedules are automated user-defined actions, which can be executed through custom functions either at a particular time or on a recurring basis. For example, using schedules, you can create a new ticket/task on a recurring basis or send reminders ...
                                                                                          • Gallery Functions

                                                                                            Zoho Desk offers you the following ready to deploy custom functions in Gallery: Create a task due in 3 days for every new ticket Update new and modified accounts from Desk to CRM Create CRM contacts for new tickets in Desk Create CRM accounts for new ...
                                                                                          • Creating Workflow Automations

                                                                                            Workflow Rules are a set of actions (alerts, tasks, field updates and custom functions) that are executed when certain specified conditions are met. These rules automate the process of sending email alerts, assigning tasks and updating certain fields ...
                                                                                          • Using Custom Function in Zoho Desk

                                                                                            Custom functions are easy to program scripts, which helps you to update the data in related help desk modules or other third-party applications. When a record matches the workflow criteria, workflow engine automatically triggers the custom function ...
                                                                                          • Programming New Custom Functions

                                                                                            Deluge, an abbreviation formed from - Data Enriched Language for the Universal Grid Environment is an online scripting language integrated with Zoho services. With this script, you can add different types of business logic to the custom functions. ...
                                                                                          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