Cert++
Close

Formula, roll-up summary, flow or code for related-record calculations

Key Takeaway

A roll-up summary field totals or counts detail records onto their master record, but it can't reference a cross-object formula. Salesforce recommends considering declarative tools before custom code.

When a record needs a value that depends on related records, an app builder can use a formula, a roll-up summary field, a flow, or code. To pick one, you need to know what each option does and where its limits are.

What each option does
What it doesExample
Roll-up summary fieldShows a value on a master record that is calculated from field values in its detail recordsA custom account field called Total Invoice Amount can show the sum of all invoice records in the account's Invoices related list.
Cross-object formulaReads field values from a related record, rather than adding up many recordsA formula on opportunities can reference fields on the associated account.
FlowDeclarative automation built with clicks, not code. It can automate broader processes and act on related records.A flow can update all of an account's related contacts when the account is updated, or create a renewal opportunity when an opportunity closes.
CodeFits when a requirement is something flows can't do naturallyGenerating a PDF file
Platform App Builder Study Guide

Checklist progress

0/340Learned

Given a scenario, identify the boundaries of declarative customization and the use cases for programmatic customization

0/10

Prepare for the Exam

Play Today's Certle

Study Community

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