Skip to main content

Object Relationships

Relationships are a key part of developing a flexible and scalable schema. Early decisions about a data model can have a significant impact on the flexibility and scalability of the system in the future, potentially causing significant problems if not considered carefully.

Choosing the right relationship​

ProblemRelationship to useNotes
One record relates to anotherLookup
One record has many related recordsLookupOne-to-many relationship
One record tightly relates to another, would not exist without its parentMaster-DetailConsider sharing implications
One record could be related to many others, and those records could be related to manyJunction/Join
Record belongs in a hierarchy of sibling recordsLookup (self-reference)
One record is related to exactly one record in a different objectLookup (One-to-one)Requires automation to enforce
One record is related to many records in a different objectLookupOne-to-many relationship
tip

When in doubt, a Lookup relationship is usually the correct choice.