โ† Salesforce learning path
Salesforce ยท Module 3 of 10

Relationships and data modelling

Connect objects with relationships.

๐Ÿ“– Key ideas

  1. Lookup relationship: loose link between objects.
  2. Master-detail: tight link; child depends on parent (deletes cascade, roll-up summaries).
  3. Many-to-many via a junction object.
  4. Roll-up summary fields aggregate child data.
  5. Design the data model before building automation.
๐Ÿ’ก Real-life example: Master-detail is a mother and child sharing a ration card; lookup is just a phone contact.
Lookup relationshipLoose connection between objects
Master-detailTight parent-child relationship
Junction objectObject enabling many-to-many
Roll-up summaryAggregates child records