Formula Field In Salesforce
Formula fields are custom READ-ONLY fields that derive their value from a formula expression you define. It calculates the latest value when it is viewed or when any of the source fields changes. We can use formula fields in Reports and SOQL queries.
Below are some characteristics of the Formula field in Salesforce:
- Formula fields are READ-ONLY fields. We can not change/update their values at own.
- Formula fields derive/calculate the values using the Formula expression.
- When the source field changes, the value of the formula field is automatically updated.
Formula field return type: We can create formula fields of only below mentioned returned type:
- Checkbox
- Currency
- Date
- Date/Time
- Number
- Percent
- Text
- Time
Note: We can use one formula field in calculation other formula fields.
Limit: The formula field can contain up to 3900 characters(including spaces, and comments). If we need more characters then we can divide the formula in different parts and can create separate formula field for each formula and then reference these formula fields in main formula field.
Comments
Post a Comment