Understand functions | Zoho Creator Help

Understand functions

A function is a set of deluge or java statements grouped together, which can be invoked within an application whenever required. Use functions to structure deluge scripts in a modular way. Related functions can be grouped under a common category, called a namespace.

Functions are mostly used for the following reasons:

  • Write once and reuse utilities:

    Functions promote reusability of deluge or java script within an application or across applications created by the same user. This makes the code modular and easy to understand. If you want to repeat certain scripting functionality across different parts of an application, you can define it as a function and reuse it. Use the built-in functions provided in deluge to create numerous utility functions on your own.

  • Bridge the gap between applications:

    In addition to defining generic utilities as functions, you can also use functions to manipulate the application data. Until recently, it was not possible to manipulate data in one application using scripts in another application. This is now possible using functions. We can consider the application and its data as an object and we define functions to operate on this data (compare this to member functions in an object-oriented world view). The applications can communicate with each other using functions.

  • Integrate custom actions with reports:

    Functions can be integrated into various GUI actions, taking scripting integration in Zoho Creator to the next level. Functions are integrated into reports as custom actions. This enables the user to invoke a specific function on selected records in a report.

Note:

A function calling itself (also known as recursive function) cannot be called more than 75 times. If the limit of 75 is exceeding, a "Call Stack limit exceeded" error will be thrown.


    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


            Get started with Zoho Sign

            in a few quick steps!

            Download Help Guide





                        Still can't find what you're looking for?

                        Write to us:  support@zohoforms.com


                              




                            

                          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

                                                                                      • Understand Aggregate Functions

                                                                                        This page is applicable only to list report. The summarized, miniature report of values that appear at the bottom of your report is the aggregate value. Aggregate values are applicable to number field types and they summarily display the sum of the ...
                                                                                      • Understand expression

                                                                                        Understand formula field's expression The formula field's Expression is what defines the value it will store and display. For example, the Amount field in an Order form is usually a result of multiplying the values in Unit ...
                                                                                      • Understand reports

                                                                                        A report is a compilation of data collected using a form in the created application. Zoho Creator incorporates reports as one of the components to complete the purpose of the application that you create. A report collates and presents information to ...
                                                                                      • Create and manage Java functions

                                                                                        A function is a set of statements that is invoked in an application to perform a certain action or yield a desired result based on the logic in the code. Java is a widely used programming language. Introducing Java will equip you to implement the ...
                                                                                      • Understand application settings

                                                                                        This help page is for users in Creator 6. If you are in the older version (Creator 5), click here. Know your Creator version. The Settings section allows you to make application level configurations. You can view and change information about and ...
                                                                                      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