Configure Pass state in Circuit | Qntrl | Circuit | Online Help

Pass

The Pass state in the Circuit merely forwards the data to the next defined state. It allows you to pass the input data as-is or include supplementary information if needed during the process. To put it differently, with this state, you can insert new data or make changes (or manipulations) to the input JSON data by configuring Input pathOutput path, or Result path fields. To know more about these paths, refer Input & Output processing section.
 
Besides the common fields, Pass state also has an additional Result field which is not available in any other states. This field is used to insert a new object into the input JSON data and pass the modified JSON data as the input to the next state. The path of the new object added to the input is to be defined in the Result Path. If the Result Path and Result are not specified in the Circuit, the State simply passes the input data as such to the next state.  
 
Use case Example: Let's consider the use case of automating IT tasks involved in the employee onboarding process. In this scenario, the HR department supplies the new employee details as an input JSON to the Circuit, which includes attributes like name, date of birth, and role. Now, the HR department wants to augment the input JSON with additional data, like the employee's work location, and then pass this modified input to the next state in the process.
 
To achieve this, the path for the new attribute to be added in the input JSON has to be specified in the Result Path field, which is represented as '$.key'(Ex: $.location) and the corresponding value for the new attribute has to be specified in the Result field. As a result, the modified JSON input to the next state will include the objects with attributes for name, date of birth, role, and location.

We will now explore the steps to configure the mentioned process in the Pass state, both in Builder View and Code View.

Builder view

  1. In Builder View, drag and drop the Pass state from the left pane into your Circuit or click the required Pass state in your Circuit.
  2. Under Configuration tab, update the common state field attributes.
  3. Select the Input/Output tab located on the right side of the Builder View page, and establish the paths. For further details, refer to the Input/Output Processing section.
  4. For inserting a new parameter to the input passed, enter the key (in format '$.fieldname') in ResultPath and the value within Result.
      

Code view

In Code View, you can directly add the parameters resultPath and result within the state.

Let the JSON input to the state is:  
{
   "org_name": "Global Solutions",
   "employee_details": {
      "name": "Henry",
      "date of birth": "15-03-1990",
      "role": "Business Analyst"
   }
}

In Pass state, you can add the new parameter location in the result Path as below:
"Get Employee Details": {
      "start": true,
      "type": "pass",
      "next": "End",
      "input_path": "$.employee_details",
      "output_path": "$.employee_details",
      "result_path": "$.location",
      "result": "CA"
}

Then the JSON output will be:

{
   "org_name": "Global Solutions",
   "employee_details": {
       "name": "Henry",
  "date of birth": "15-03-1990",
  "role": "Business Analyst",
  "location": "CA"
  }
}



Next : Branch state

    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








                                    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

                                                                                                      • Output Path

                                                                                                        Output Path enables you to select a portion of the state's output and transfer it to the next state for processing, eliminating any unecessary objects from the JSON output. If the Output Path isn't specified, the entire JSON node (determined by the ...
                                                                                                      • Introduction to States of Circuit

                                                                                                        States are the building blocks of a Circuit that can perform tasks, make decisions, or simply pass the output from one state to another. The State defines a specific task or process that has to be executed in that segment of the Circuit. Circuit ...
                                                                                                      • Overview of Reports

                                                                                                        One of the best ways to manage teams in an organization is to take a step back and analyse the work pattern. Evaluate different aspects of your team’s progress using  Reports in Qntrl. Apart from the default reports provided by Qntrl, users can also ...
                                                                                                      • Input Path

                                                                                                        Input Path enables you to filter and control the actual input passed to the state. By defining an Input Path (either in Builder View or Code View), using JSONPath notation, you can select a portion of the JSON input and use it for processing within ...
                                                                                                      • Result Selector and Result Path

                                                                                                        Result Path and Result Selector are employed to extract dynamic data from the state's result when the execution is successful. Result Selector Result selector lets you retrieve and process the runtime data, enabling flexible and dynamic data ...
                                                                                                        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