Custom Functions | Zoho RPA help

Custom Functions

Custom functions are reusable scripts written in Deluge, the scripting language used by Zoho. They allow you to automate complex tasks and calculations beyond what the native features offer. Think of them as tools you build yourself, specifically tailored to your unique needs.

Create a Custom Function

From the Settings Page:

  1. Navigate to Settings > Custom Functions.
  2. Click Create Custom Function.
  3. Define the Function Name:
    1. Start with a letter or an underscore.
    2. Use only alphanumeric characters and underscores.
    3. Examples : _discount_calculation_1, autofill_zipcode.
  4. Optional: Click Function Gallery (top right) to access prebuilt functions.
  5. Select a Return Type: Choose the desired output data type for the function.
  6. Specify Input Parameters: Include parameters required by the function and their respective data types.
  7. Click Create.
  8. Enter the Deluge Script:
    1. Use the deluge editor to write the code for your function. You can also drag and drop prebuilt functions from the left pane.
Tip: For built-in function help, click the Built-in Function Reference link at the top, or use the help icon.

From the RPA Flow Builder:

  1. Open the RPA Flow builder.
  2. Click the Logic tab on the left.
  3. Click Custom Functions > Create Custom Function.
  4. Follow the same steps as described in the "From the Settings Page" section above.

Edit a custom function

From the Settings Page:

  1. Navigate to Settings > Custom Functions.
  2. Click the Edit button next to the desired function.
  3. Modify the input parameters, return type, or deluge script as needed.
  4. Click Save to apply the changes.
Note: If you modify function parameters or return types, ensure they are properly configured in flows using the function. Otherwise, errors may occur.

From the RPA Flow Builder:

  1. Click the Logic tab on the flow builder, then click on Custom functions.
  2. Click the Pencil icon next to the function name.

  3. Edit the Deluge script as needed.
  4. Click Save to apply the changes.

Test a Function

You can test your custom function to ensure that it is working as expected by providing a sample input.

From the Settings Page: 

  1. Navigate to Settings > Custom Functions.
  2. Locate the desired function and click the Test button next to it.

  3. If the function requires input parameters, a window will appear.Enter the required input values for each parameter, then click Execute.
The Input, Output, and Info tabs will display the results of the execution.

From the RPA Flow Builder

  1. Click the Logic tab on the flow builder, then click on Custom functions.
  2. Click the Pencil icon next to the function name you want to test.
  3. Click the Execute button at the bottom of the editor window.
  4. If the function requires input parameters, a window will appear.Enter the required input values for each parameter, then click on Execute.
The Input, Output, and Info tabs will display the results of the execution.

Copy a Function

Duplicating a custom function allows you to create a copy of an existing function, so that you can experiment with different code without worrying about affecting the original script. This is useful if you want to create variations of a function, or if you want to test different approaches to a particular problem.
  1. Navigate to Settings > Custom Functions.
  2. Locate the desired function and click the Copy button next to it.

  3. The name of the function will be auto-populated, example: copy_of_invoice. you can edit the name if required.
  4. Click the Create Copy button to create the copy of the function.


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            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







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                        Manage your brands on social media


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            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 TeamInbox 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

                                                                                                                                    • How to loop through Excel rows

                                                                                                                                      Overview This guide will demonstrate how to process data for each row in an Excel file within your RPA workflow. We'll achieve this by creating two workflows: a main workflow to read the Excel data and a sub-workflow to process each individual row. ...
                                                                                                                                    • Settings Overview

                                                                                                                                      The Settings section lets you view and manage information about your organization, RPA Flow execution history, cloud app connections, and agents and members on Zoho RPA. To access Settings, click the gear icon on the left sidebar. The Settings ...
                                                                                                                                    • Data Mapping

                                                                                                                                      what is data mapping? Data mapping is the process of defining how data will be used and transformed within your RPA flows. It allows you to connect the outputs of one action or trigger to the inputs of another, ensuring a smooth and efficient flow of ...
                                                                                                                                    • RPA flow

                                                                                                                                      What is an RPA flow? RPA flows are like processes or workflows that you can create to automate tasks. An RPA flow is made of a trigger and one or more actions. The trigger initiates the flow, and the actions are the tasks that are executed by the ...
                                                                                                                                    • MS Excel actions

                                                                                                                                      Excel automation in Zoho RPA lets you optimize and automate a wide range of data-related tasks, such as data extraction, data transformation, data reporting, data-driven decision-making, and data filtering. This category of RPA actions will help ...
                                                                                                                                      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