Data types in Formula Fields | Online Help - Zoho CRM

Data types in Formula Fields

Data type is the kind of data that can be held and stored while evaluating an expression. Data types are the defined set of values and the allowable operations on those values. They represent either the function, argument, return value or the complete formula itself. The different data types available in Zoho CRM Formula Fields are:

  • Decimal data type
  • Currency data type
  • String data type
  • Date data type
  • DateTime data type
  • Boolean data type

Decimal Data Type

The decimal data type contains number (digits) in various representations and performs the calculations. The decimal data type can be integral types with only whole numbers (positive, negative and zero) and non-integral types with both integer and decimal parts. Example for Numeric data types are +5, -9, 10, 0 (integral types) and -25.02, 27.25 (non-integral types).

Currency Data Type

The currency data type is used for data types that hold monetary values or financial calculations. This contains the numeric value of data along with the currency symbol of the selected currency locale.

String Data Type

A string data type is an ordered sequence of symbols. These symbols can be chosen from a predetermined set of mathematical objects or alphabets (unicode characters). Example for String data types are: 'demo', 'crm'.

Based on the length of the resultant value, you can choose the return types in three sizes: Small, medium, and large. Bear in mind, this selection will have implication when you select data in your CRM database. Here's a table to help you through the application of each string length:

 

Date Data Type

The date data type is used to store or display values that are date only. Examples are ('May 15, 2004').

DateTime Data Type

The datetime data type is used to store or display values that are both date and time. Examples are ('May 15, 2004 11:25am').

Boolean Data Type

The boolean data type, also known as the logical data type are used to represent the logical values of true and false. Example for Boolean data types are: true; false.