Data Access - Fetch a field's value

Data Access - Fetch a field's value

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 a 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 a specified field's value from the first record in a collection.The returned field value can be put to further use like updating it.

Syntax

To fetch a specified field's value from the first record which meets the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name>;
To fetch a specified field's value from the first record of all the records sorted in ascending order, which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name>sort by <field_link_name>;
To fetch a specified field's value from the first record of all the records sorted in descending order, which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name> sort by <field_link_name> desc;
To fetch a specified field's value from the first record of all the records in the specified range, which meet the criteria
  1. <variable> = <form_link_name>[<criteria>].<field_link_name> range from <start_index> to <end_index>;
To fetch a specified field's value from the first record of 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>;
To fetch a specified field's value from the first record of 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>;

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 value of the "name" field from the record which appears at the top after the records have been sorted based on the age field.
  1. EmployeeDetails = Employee[ID != 0 ].name sort by age;


    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 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 - Fetch all values of a field

                                                                                                        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 given criteria is met. Note: The fetched records may appear to be ...
                                                                                                      • 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 - Maximum

                                                                                                        This guide will help you with the following: Overview Return Syntax Things to keep in mind Examples Overview The maximum function in the "aggregate records" deluge task returns the largest value of a specified field from records fetched based on ...
                                                                                                      • Data Access - Minimum

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