Function in Circuit | Circuit | Qntrl | Online Help | Integrate with other tools during a workflow process

Function

A Function is a serverless, simple programming script that can handle a variety of tasks and integrate with other tools to create robust automated workflows. You can write Functions in Python, Node.js, Java, and Zoho Deluge and perform seamless execution with circuit without worrying about server management.

 

Prerequisite

Create a standalone function in Qntrl. Functions must be deployed before integrating them into the circuit. Click here to learn how to create and deploy a Function. 
 
Example Use Case: One of the main steps during employee onboarding involves identifying and allocating the required assets, as well as installing the operating system (OS) and necessary software on designated computers. In this 'Asset Allocation' process, the Function state can be employed to invoke a Custom Function which in turn would retrieve the license key from the vault and apply it during the installation of the OS or software. Refer to the 'Employee Asset Allocation' Circuit in the below figure, which has been configured specifically for the task of allocating assets to employees and is nested within the employee onboarding process.

Builder View

In Builder View, to incorporate a function into a circuit:

  1. Drag and drop the Function state from the left pane into your circuit or click the required Function state in your circuit.
  2. Under Configuration, update the common state field attributes.
  3. Type Function is selected by default. Select the Function Name to be added to the circuit from the drop-down list.
  4. Specify the Error Handling options for the state. To learn more about Error Handling, click here.                   

      

  1. Under Input / Output on the right pane, you can optionally fill in the following details:

    1. Enter the Input Path, Output Path, Result Path, and Result selector. To learn more about I/O paths, click here.

    2. You can also send additional parameters along with the JSON input sent to the Function. Click Add Parameters and enter the parameter name and parameter value. These inputs will be passed to the Function during execution.

      

  1. Click Save and Execute at the bottom of the page.
  2. Specify the test data as Input JSON for your test run, then click Next.
  3. Name your test run for this execution. Click Run.
  4. Check for the data received from the function.
  5. Modify your function settings if failure or data mismatch is encountered.
  6. Repeat this test until you get the required result using your function.

Code View

In Code View, the JSON to incorporate a function into a circuit is given below:
"Licence Key Activation": {
      "type": "function",
      "next": "End",
      "function_id": "function_licence_activation_21",
      "parameters": {
            "software_name": "$.software.name",
            "software_version": "$.software.version"
       }
}





Next : Webhook state

    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 Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          Offline Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal

                          Form Designer HR

                          Card Forms Food
                          Assign Forms Photography

                          Translate Forms Real Estate
                          Electronic Forms

                          Notification Emails for Forms Alternatives
                          Holiday Forms Google Forms alternative 
                          Form to PDF Jotform alternative





                                            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

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


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

                                                                                                              • Custom Function: Create_Job

                                                                                                                This custom function can be used to create a new card in any orchestration. It can also be configured to carry forward necessary field values from the former card to the latter.   Business Scenario Helen is the head of Procurement Management in her ...
                                                                                                              • Custom Function: Computing_Field_Values

                                                                                                                This custom function can be used to add two values and save the return value in a custom field.  The sum will be dynamically updated in the custom field after this function is executed.  Business Scenario Helen is the head of Procurement ...
                                                                                                              • Custom Function: Create_Ticket_in_Zoho_Desk

                                                                                                                Zoho Desk is customer service software which allows you to address customer concerns. This custom function can be used to post a card as a ticket in Zoho Desk.  Prerequisites  Sign up for Zoho Desk and create a department. The ticket will be created ...
                                                                                                              • How is Card-based custom function different from Standalone custom function?

                                                                                                                  Card-based custom function Standalone custom function Card-based custom function can be invoked using OAuth 2.0 protocol. Standalone custom function can be invoked OAuth 2.0 protocol or API key. Functions can use card-based arguments. Functions can ...
                                                                                                              • Custom Function: Post_and_Update_Comments_in_Zoho_Desk

                                                                                                                Zoho Desk is a customer service software which allows you to address customer concerns. This custom function can be used to add or update comments in Zoho Desk whenever they are added or updated in Qntrl.  The comments will be added to the tickets ...
                                                                                                                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