Data Access - Fetch all values of a field

Data Access - Fetch all values of a field

This guide will help you with the following:
  1. Overview
  2. Return
  3. Syntax
  4. Things to keep in mind
  5. Example

Overview

The fetch record deluge task retrieves records from a specified form, when given criteria is met.
Note:
The fetched records may appear to be sorted based on "added time" (oldest first) system field. However, there is no guarantee to this order and there is no guarantee that the order will remain constant over time. If you are particular about the sequence of the records, it is advisable to use the sort param.

Return

This task returns all the values of a specified field. The return type is List.

Syntax

To fetch all values of a specified field from the records which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name>.getall();
To fetch all values of a specified field from all the records, sorted in ascending order based on a field, which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name>sort by <field_link_name>.getall();
To fetch all values of a specified field from all the records sorted in descending order based on a field, which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name>sort by <field_link_name> desc.getall();
To fetch all values of a specified field from all the records in a specified range, which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name>range from <start_index> to <end_index>.getall();
To fetch all values of a specified field from all the records in the specified range sorted in ascending order based on a field, which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name>sort by <field_link_name>range from <start_index> to <end_index>. getall();
To fetch all values of a specified field from all the records in the specified range sorted in descending order based on a field, which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name>sort by <field_link_name> descrange from <start_index> to <end_index>. getall();  

Things to keep in mind

  1. If you wish to fetch all records of the specified form, use the following script as criteria
  1. [ID != 0]
  1. It is advisable to fetch all records only when absolutely needed. Fetching all records generates a load resulting in performance issues.
  2. If you wish to use the "sort" and "range" parameters together, the "sort" parameter should be followed by the "range" parameter.
  3. The Name and Address fields do not work with the sort by param.
This task can be used in the following events

Example

1) The following script fetches the ids' of all the records which have the designation as "Member Technical Staff". The record ids' are then added to the Employee_Name lookup field.
  1. EmployeeName = Employee[Designation == "Member Technical Staff"].ID.getall();
  2. Employee_Name:ui.add(EmployeeName); 

    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

                                                                                                      • Data Access - Fetch a field's value

                                                                                                        This guide will help you with the following: Overview Return Syntax Things to keep in mind Example Overview The fetch record deluge task retrieves records from a specified form, when a given criteria is met. Note: The fetched records may appear to be ...
                                                                                                      • Data Access - Fetch Records

                                                                                                        This guide will help you with the following: Overview Return Syntax Things to keep in mind Examples Overview The fetch record deluge task retrieves records from a specified form, when a given criteria is met. The criteria is mandatory. Note: The ...
                                                                                                      • Data Access - Criteria to fetch records

                                                                                                        This guide will help you with the following: 1. Overview 2. Syntax 3. Applicable operators for different datatypes Overview A criteria is required when you need to fetch a collection of records. Criteria comprises of one or more conditions separated ...
                                                                                                      • Data Access - Sum

                                                                                                        This guide will help you with the following: Overview Return Syntax Things to keep in mind Example Overview The sum function in the "aggregate records" deluge task returns the sum of all values of a specified field from records fetched using a ...
                                                                                                      • Data Access - Average

                                                                                                        This guide will help you with the following: Overview Return Syntax Things to keep in mind Example Overview The average function in the "aggregate records" deluge task returns the average of all values of a specified field from records fetched using ...
                                                                                                        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