Salesforce Platform App Builder Study Guide: Relationships and Roll-Up Summaries
Practice Salesforce Platform App Builder data modeling with a worked example comparing lookup and master-detail relationships, formula fields, and roll-up summaries.
Use the business ownership and deletion requirements to choose a Salesforce relationship. A native roll-up summary can aggregate related detail records in a master-detail relationship, where supported.
Map record ownership and lifecycle first
A training team needs a Salesforce app to manage workshops and registrations. Each registration belongs to one workshop. The team also wants a count of confirmed registrations and a count of everyone who ever registered. Start with sample records and write down which parent owns each registration, who should see it, and what should happen if someone attempts to delete the workshop.
A master-detail relationship can fit when registrations are tightly dependent on their workshop and the team accepts inherited access and the deletion behavior. Test those assumptions with the business owner. If registrations must survive removal of a workshop or need independent ownership and sharing, assess a lookup relationship and plan the reporting or aggregation separately.
Choose between calculation and aggregation
Suppose registration has a Yes or No field for confirmation. The workshop needs a count of confirmed registrations. If the chosen relationship supports native roll-ups, add a COUNT roll-up summary on the workshop and filter detail records to confirmed entries. With five registrations, three of which are confirmed, the field should show three. Check what happens when a registration is changed from pending to confirmed.
For a different task, calculate the price estimate on each registration from the quantity and unit price on that record. A formula field can present that value per registration. If the workshop also needs a total over confirmed detail records, verify that the source field and its definition are supported for the intended roll-up. Test the aggregation separately from the per-record calculation.
Handle a changed requirement before changing the schema
The team now says a registration needs to move to another workshop and that some workshop records may be deleted after a retention period. Check whether reparenting is permitted on the relationship, and discuss whether registration records should persist after a parent is removed. A change to the relationship can affect existing records and access behavior, so make the revised lifecycle explicit before changing it.
If the team keeps a lookup, write the exact visibility requirement for the count. If a grouped report satisfies it, validate the report filters with the same workshop and five sample records. If the count must also appear on the workshop record itself, evaluate a supported solution that handles updates, deletions, and moves. Test whether the count updates on both the old and new workshop after a move.
Practice a repeatable App Builder verification pass
Use a practice environment with one empty workshop and one workshop with confirmed and pending registrations. Write expected totals before making any edits. Confirm a pending row, move a registration if the design allows it, and remove a disposable record. Check how each operation changes the relevant count and that the empty workshop shows the expected value.
Finish by documenting the relationship choice alongside assumptions about ownership, sharing, and deletion. During exam review, underline whichever of those constraints would change your answer. This makes it easier to reason through a similar scenario whose wording emphasizes a different requirement.
As a final check, test a workshop with registrations that all fail the confirmed filter. Compare the result with a workshop that has no registrations. The same count can describe different operating situations, so make the report labels precise.
Your next steps
- Review ownership and deletion requirements before choosing a relationship.
- Verify native roll-up support and its filter.
- Test parent totals after changes to related records.
Sources & official resources
Linked resources checked on 2026-12-01. Technical behavior and provider guidance can change; check the documentation for the version you use.
About this guide and its recommendations
Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.
Suggest a correction →