Understanding Custom Functions

Understanding Custom Functions

Custom functions in Zoho IoT allow you to extend the platform's capabilities. These functions are written using various programming languages and are easy to construct.

With custom functions, users can move beyond the default offerings of the platform and get more access to the platform environment. This flexibility helps optimise workflows and make operations more efficient.

Some cases for custom functions used in Zoho IoT are listed below:

Alarm Notifications: Write custom functions that are executed when an alarm is triggered, updated, or cleared is triggered
Data Operations: Execute custom functions when record are added, updated, or deleted in the application.

Message Handling : Use custom functions to process or transform incoming data before it is stored and forwarded.

Integration with External APIs: Write custom functions to connect Zoho IoT with external APIs, allowing your IoT solution to interact with other platforms and services, enhancing its capabilities.

Example Scenarios for Custom Functions
  • When you are monitoring air quality and temperature in an office building using Zoho IoT, you may need to automatically create a service order when the temperature crosses a defined threshold. This can be achieved by configuring a notification profiles that triggers a custom function. The custom function then creates a service order record in the application and the technician can be assigned to it.
     
  • When you want to generate a record at the end of every shift containing the number of parts produced, the machine runtime, and the power consumed during the shift, you can use a combination of a scheduler and a custom function. The scheduler triggers the custom function at the end of each shift, and the custom function aggregates the required values before creating the record.

  • When you need to extract a field value from the payload of an edge device and update a corresponding field in a device instance, you can use a message handler together with a custom function. The message handler provides access to the incoming payload, while the custom function processes the payload and updates the device instance based on the required logic.

Custom Function Categories

A custom function in Zoho IoT is always mapped to a specific category, which defines its trigger. Each category provides access to a specific set of parameters based on the feature the category refers to. For example, when used with the alarm rule category, the custom function can access alarm details, datapoint values, and field properties.
 
Below is the list of custom function categories. Select a category to view its details, examples, supported parameters, and steps to create a custom function for that category.
 
Category
Language
Trigger
Parameter
Deluge
Action defined in the alarm rule.
Alarms, Datapoint Values, Field Values
Deluge
When a command is executed
Access to the command payload
Deluge
Action defined in the workflow
Fields Value
Schedule
Deluge
Time defined in the scheduler
- Not Applicable -
Notifications Profiles
Deluge
Conditions defined in the Notification Profile
Alarms, field values
Java Script Lite
When a message payload is received
Incoming payload messages
Message Handler
Deluge
When a message payload is received
Access to incoming payload
API trigger
Deluge
When the REST API is called
REST API header and body parameters
 
 

      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


                                          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

                                                                                                                            • Understanding Custom Modules

                                                                                                                              Custom modules in Zoho IOT allow you to store and manage additional information specific to your business needs. You can configure these modules with various fields to capture both manual and automated information from users and the application. For ...
                                                                                                                            • Understanding Actions

                                                                                                                              In an IoT setup, you may have to trigger various actions, such as sending notification emails to relevant personnel, connecting to a third-party URL via. webhook, executing custom business logic on certain conditions, or sending notifications as ...
                                                                                                                            • Understanding Alarms

                                                                                                                              Identifying faults in devices and assets within an IoT network is the most vital part of any monitoring application. It provides insight into the health of devices and assets, and consequently, the overall health of the network. This capability ...
                                                                                                                            • Understanding Notification Profiles

                                                                                                                              Notification profiles are rules that are triggered when alarms are created or updated in the application. These profiles can be set to initiate actions such as sending emails, executing custom functions, executing a webhook, or triggering a push ...
                                                                                                                            • Understanding Audit Logs

                                                                                                                              Audit Logs provide a record of all user and system activities within the Zoho IoT application in chronological order. For example, activities such as creating a device, deleting a datapoint, or updating a map are all logged in the audit logs. This ...
                                                                                                                              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