Functions in Formula Fields

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 supports four different functions:

  • Numeric Functions
  • String Functions
  • DateTime Functions
  • Boolean (Logical) Functions

Numeric Functions

A numeric function in formula fields is used to work with numeric data types and accepts numeric results. Numeric functions are generally used to display the results of typical mathematical calculations. The numeric values (arguments) can be integers or decimals, positive or negative. For instance, the formula can use number values as 10-12+52, etc.

String Functions

A String is a specialised set of characters (that can contain spaces and numbers) or a contiguous sequence of symbols or values enclosed within quotes so as to be differentiated from a number or a variable name. A string function is used to manipulate or edit the contents of a string.

DateTime Functions

DateTime functions are used when working with time and date types such as identifying the day of the week for a given date. You can use these functions when you need the values to contain both date and time information in a specified format. For instance, the formula can return a value as YYYY-MM-DD HH:MM.

Boolean Functions

A boolean function determines the value output based on the logical calculation of the inputs. In other words, a boolean function evaluates the truth or fallacy of each element of its domain. It confirms the entities having just two values: 1 or 0, true or false, etc. along with the operations andor and not.


    • 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 ...
    • 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, ...
    • Associate Functions

      Associate Functions Business Scenarios Target Audience Set Up Functions Business Scenario Refer Error Codes The CRM Functions help you to update the data in related CRM modules or third-party applications by executing simple program scripts. When a ...
    • 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 ...