Data types

Data types

This guide will help you with the following:
  1. Text
  2. Number
  3. Decimal
  4. Boolean
  5. Data-time
  6. Time
  7. List
  8. Key-value


Text data type

The text, or string, datatype represents a sequence of characters. These characters can be text characters, special characters, numeric characters, or other valid input, and must be enclosed in double quotes.

Note: The backslash ( \ ) can be used to escape double quotes within a string

Example

  1. Name = "John";
  2. Address = "Zoho Corporation, 4141 Hacienda Drive, Pleasanton, California 94588, USA";
  3. Num = "1234567890";

Number data type

The Number datatype represents integer values. These integer values can range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,808. Number datatype does not include decimal values. However, Number datatype can be used to perform operations with decimal values, in which case the end result becomes a decimal datatype.

Example

  1. Version = 5;

Decimal data type

The decimal datatype represents decimal values, commonly used to represent values such as currency, percentage, etc.

Example

  1. planPrice = 0.99;

Boolean

The boolean datatype represents the boolean values - true and false.

Note:
  1. Boolean values must not be enclosed in quotes
  2. Boolean values are case-insensitive

Example

  1. job_experience = false;
  2. Salary_negotiable = true;

Data-Time data type

The date-time datatype represents date and time values in a variety of supported formats.

Note:
  1. Date-time values must be enclosed within single quotes.
  2. A date can be declared without time, in which case 00:00:00 is taken as the default.

Example

  1. date = '15-Aug-1947';
  2. appointment_time = '15-Aug-1947 19:00:00';

Supported Date formats

  1. dd-MMM-yy (15-Aug-47)
  2. dd-MMM-yyyy (15-Aug-1947)
  3. dd-MMMM-yy (15-August-47)
  4. dd-MMMM-yyyy (15-August-1947)
  5. MM-dd-yy (08-15-47)
  6. yy-MM-dd (47-08-15)
  7. dd-MM-yy (15-08-47)
  8. dd-MM-yyyy (15-08-1947)
  9. MM-dd-yyyy (08-15-1947)
  10. yyyy-MM-dd (1947-08-15)
  11. yy/MM/dd (47/08/15)
  12. dd/MM/yy (15/08/47)
  13. MM/dd/yy (08/15/47)
  14. yyyy/MM/dd (1947/08/15)
  15. MM/dd/yyyy (08/15/1947)
  16. dd/MM/yyyy (15/08/1947)
  17. dd MMM,yy (15 Aug,47)
  18. MMM dd,yy (Aug 15,47)
  19. dd MMM,yyyy (15 Aug,1947)
  20. MMM dd,yyyy (Aug 15,1947)
  21. dd MMMM,yy (15 August,47)
  22. MMMM dd,yy (August 15,47)
  23. dd MMMM,yyyy (15 August,1947)
  24. MMMM dd,yyyy (August 15,1947)
  25. E,MMMM dd,yyyy (Fri,August 15,1947)
  26. E,MMM dd,yyyy (Fri,Aug 15,1947)
  27. MMM dd yy (Aug 15 47)
  28. dd MMM yy (15 Aug 47)
  29. MMM dd yyyy (Aug 15 1947)
  30. dd MMM yyyy (15 Aug 1947)
  31. MMMM dd yy (August 15 47)
  32. dd MMMM yy (15 August 47)
  33. dd MMMM yyyy (15 August 1947)
  34. MMMM dd yyyy (August 15 1947)
  35. dd.MM.yy (15.08.47)
  36. MM.dd.yy (08.15.47)
  37. yy.MM.dd (47.08.15)
  38. dd MM yyyy (15 08 1947)
  39. dd.MM.yyyy (15.08.1947)
  40. MM.dd.yyyy (08.15.1947)
  41. yyyy.MM.dd (1947.08.15)
Note: In the event of mismatch between the specified and supported Date Time formats, we will try to convert the specified format into the closest supported format. In the event of a failure, an error message will be encountered.

Time data type

The time datatype represents time values in both 12-hour and 24-hour formats. This data type works independently of a date value.

Note:
  1. Time data type is currently supported only in Zoho Creator.
  2. Time values must be enclosed within single quotes.
  3. Time values range between '12:00:00 AM' to '11:59:59 PM' for 12-hour format.
  4. Time values range between '00:00:00' to '23:59:59' for 24-hour format.
  5. A time value should be defined with all the three components - hours, minutes and seconds in place (AM/PM in case of 12-hour format).

Example

  1. available_from = '19:00:00';  
  2. closing_at = '06:00:00 PM';

Supported Time formats

  1. hh:mm:ss a (12-hour format)
  2. HH:mm:ss (24-hour format)

Note:
  1. Declared time values cannot skip either the seconds part or seconds and minutes parts altogether. In the event the value does not conform to the supported time formats, an error message will be thrown.
  2. However time values without the seconds (hh:mm or HH:mm) or without the minutes and seconds (hh or HH) part assigned to TIME fields will be accepted by defaulting the missing components. For example, "10 AM" assigned to a TIME field will be treated as '10:00:00 AM' and "18:15" will be treated as "18:15:00".
  3. Care should be exercised while declaring a value like "15 minutes and 12 seconds". Declaring this value as "15:12" would be read as "15:12:00". It should be declared as "00:15:12" and "10 seconds" should be declared like "00:00:10".
  4. TIME values in no way should fall outside the 24 hour range. A value declared like "23:59:60" would throw an error.
  5. Operations (like addHour, subMinutes) on TIME values which result in a value outside the 24-hour range will also result in an error

List data type

List is a data-type which can hold a collection of values. Each value present in the list is called an element.
A list can contain elements of different types say number, text, date etc. grouped together. You can also restrict the list to only accept values of a specific data-type using special qualifiers. In general, a list provides methods to store, retrieve and manipulate an aggregate of elements.

Example

  1. ZohoProducts = {"Creator", "CRM", "Projects", "Campaigns"};
Elements in a list can be subject to various operations such as:
  1. Positional Access - Manipulate elements based on their numerical positional in the list. For example, functions such as contains(), get(), and remove().
  2. Search - Search for elements in a list and return their numeric position. For example functions like indexOf(), lastIndexOf().
  3. Range - Perform range operations like sublist().
  4. Unique functions - Perform unique functions like intersect(), sort(), etc.


Key-Value data type

Key-Value is a data-type which holds values based on keys. The keys can be used to retrieve the corresponding values. Keys must be unique. If the same key is specified again, its value will overwrite the first value. Both, keys and values can be of any data type.

Example

  1. ZohoProduct = {"Product" : "Creator", "Version" : 5};
The key value pairs can be subject to various operations such as:
  1. Key-value pair operations - Perform actions based on the key-value pair. For example, functions such as put(), get() and putAll()
  2. Search - Search for key or value return a boolean value. For example, functions such as containKey() and containValue().
  3. Range - Perform range operations to return all the keys. For example, keys().
  4. Unique functions - Perform unique functions like size() to return the size of the key-value pairs.


    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







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • Data types of Zoho Creator fields

                                                                                                    The following table displays the data type of each Zoho Creator field: Note: Subform field is an advanced field type, which contains fields of varied data types. So, a subform field does not take any data type as such. However, we can refer to the ...
                                                                                                  • 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 ...
                                                                                                  • Collection data type

                                                                                                    This guide will help you with the following: Overview Types Create a collection Insert data into a collection Retrieve data from a collection Iterate through a collection List/Map vs Collection Note: Collection data type is not to be confused with a ...
                                                                                                  • Data Access - Collection variable

                                                                                                    This guide will help you with the following: Overview Declaring a collection variable Aggregate functions Fetch field value from the first record Fetch values of a field from all the records in a collection Updating field value in a collection ...
                                                                                                    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