Business Logic and Process Automation32% of the exam

Formula fields: functions, cross-object references and limits

How to build formula fields that meet a requirement: return types, picklist and date functions, blank handling, cross-object references to parent records, the 15-relationship and size limits, and what a formula field can never do.

Official exam objective
Given a scenario, demonstrate the use of formula fields to meet stated business requirements.

~8 min read · 13 practice questions ·

What the exam expects

  • Choose a return type and write the expression, including picklist logic with ISPICKVAL or CASE.
  • Calculate with Date, Date/Time and Time values: elapsed days or hours, month offsets, weekdays, and TEXT's GMT effect.
  • Show a parent's field on a child with a cross-object formula, and fix the 15-reference and size limits.
  • Handle blank number fields with blank field handling or BLANKVALUE.
  • Recognise what a formula field can't do (detect a change, be edited, render raw HTML) and pick the alternative.

Key terms: formula field, a read-only calculated field; return type, the data type it outputs; cross-object formula, one that reads parent records; spanning relationship, one unique relationship an object's formulas and rules reference; blank field handling, treating blank number inputs as zero or blank.

Key facts

Formula fields are read-only
Detail
Not on edit pages; don't update last modified date
Cross-object reach
Detail
Up to 10 relationships away; not in default values
Spanning relationship limit
Detail
15 unique relationships per object across formulas, rules and lookup filters
Size limits
Detail
3,900 characters; 1,300 displayed; 15,000 bytes saved and compiled
Date/Time subtraction
Detail
Decimal days; multiply by 24 for hours
ADDMONTHS from a month end
Detail
Returns the last day of the resulting month
HTML in formulas
Detail
Escaped; use IMAGE or HYPERLINK
ISCHANGED in formula fields
Detail
Not available; rules and field updates only
Sources for this section (7)
  • Why doesn't a formula field change a record's Last Modified Date when its value changes?
  • When does a CASE function return its else_result?
  • Why does a Text formula "Closed " & TEXT(Closed_At__c) show a time that doesn't match the viewer's clock?
  • Which components count toward an object's 15 spanning relationships?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the Platform App Builder pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 26 lessons of the Platform App Builder guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Inline practice questions and one-click topic practice (13 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Unlimited timed practice exams

Practice for the Platform App Builder exam