Data types in Formula Fields

Data types in Formula Fields

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 the CRM Formula Fields are:

  • Numeric data type
  • Currency data type
  • String data type
  • DateTime data type
  • Boolean data type

Numeric Data Type

The numeric data type contains number (digits) in various representations and performs the calculations. The Numeric 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'.

DateTime Data Type

The datetime data type is used to store or display values that are both date and time or only date. 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.


    • Related Articles

    • Building Formula Fields

      Building Formula Fields The CRM formula fields enable you to define fields that can populate dynamically calculated data based on the values returned from other standard or custom fields. For instance, an insurance company may need to determine, if ...
    • Creating Formula Fields

      Creating Formula Fields Create Numeric Formula Field Create String Formula Field Create DateTime Formula Field Create Boolean Formula Field Formula Syntax Reference Formula fields are used to calculate different types of values, including numeric ...
    • Functions in Formula Fields

      Functions in Formula Fields Function performs a specific operation on values that you specify and generates a new value. To compose a function, you need to type the function name, followed by a set of parentheses(). The CRM formula type custom field ...
    • Types of Custom Fields

      Types of Custom Fields Create Currency Fields Add/Rename Pick List Values Replace Pick List Values Add Multi-Select Pick List Values Create Lookup Field Create Multi-Select Lookup Field Create Auto Number Field Create User Field Add Record Image ...
    • Examples of Formula Field

      Examples of Formula Field Formula Fields can be complicated sometimes. So, here are examples that will help you understand the usage of these types of fields in the CRM. IF ELSE Statement Example: If field name contains 'Golf Only 1 Meal', then ...