Types of Relationships in Salesforce
In Salesforce, relationships define how records in one object relate to records in another object. They are essential for structuring data…
Types of Relationships in Salesforce
In Salesforce, relationships define how records in one object relate to records in another object. They are essential for structuring data and allowing data to be accessed efficiently across the platform.
- Lookup Relationship Definition: A loose association between two objects. Behaviour: Child record can exist without a parent. No cascade delete(unless it is specified in custom settings). Example: Case has a lookup to Contact.
- Master-Detail Relationship Definition: A strong dependency between parent and child. Behaviour: Child(detail) record cannot exist without the parent(master). Deleting the parent record will delete the child record(Cascade Delete). Child inherits ownership, sharing rules and security from the parent. Example: Opportunity Line Item is a detail of Opportunity
- Many-to-Many Relationship Definition: Allows a record of one object to be related to many records of another object and vice versa. Implementation: Requires a junction object with two master-detail relationships. Example: Campaign and Lead using the junction object Campaign Member.
- Hierarchical Relationship Definition: Special type of relationship available only on the User object. Behaviour: It is used to show a hierarchy, like Manager-Subordinate relationship. Example: A user record has a lookup to another user as a Manager.
- Self- Lookup Relationship Definition: A lookup relationship where the parent and child are from the same object. Behaviour: It allows a record to be related to another record of the same type. Example: A Case may have a parent case.
As a Salesforce Admin or Developer, mastering these relationships will help you design better solutions.
메타데이터
- post_id
- 5d10a2c2c97a
- slug
- types-of-relationships-in-salesforce-5d10a2c2c97a
- url
- https://medium.com/@rvaisu/types-of-relationships-in-salesforce-5d10a2c2c97a
- canonical_url
- https://medium.com/@rvaisu/types-of-relationships-in-salesforce-5d10a2c2c97a
- author_url
- https://medium.com/@rvaisu
- status
- ok
- fetched_at
- 2026-06-25 16:53:31