Cert++
Close

Formula field return types

Key Takeaway

Select the return type first, before the formula editor opens, and choose it based on what the calculation outputs.

A formula field is a field that Salesforce calculates from values on the current record or related records. When you create one, you pick a return type, which decides what kind of value the formula produces and how it displays. Choosing the right return type is the first decision when you use a formula to meet a business requirement.

Choosing the return type

Like a standard field, a formula field has a data type, which is its return type. You select the return type first, before the formula editor opens. You choose it based on what the calculation outputs.

There are eight formula return types, grouped here by what the calculation outputs.

What the calculation outputsReturn type
TRUE or FALSECheckbox
A numberNumber, Currency or Percent
A date, a time of day, or bothDate, Date/Time or Time
A stringText
Platform App Builder Study Guide

Checklist progress

0/340Learned

Given a scenario, demonstrate the use of formula fields to meet stated business requirements

0/16

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform App Builder studiers. 757 members and growing.