Co-Authored By:

Asked by: Inocente Valsecchi
technology and computing databasesWhat is lookup relationship in Salesforce?
Similarly one may ask, what are the different types of relationships in Salesforce?
Salesforce provides the following types of relationships that can be established among objects:
- Master-detail relationship.
- Lookup relationship.
- Self-relationship.
- External lookup relationship.
- Indirect lookup relationship.
- Many-to-many relationship (junction object)
- Hierarchical relationship.
what is the difference between lookup and master detail relationship in Salesforce?
While lookup relationships are fairly casual, master-detail relationships are a bit tighter. In this type of relationship, one object is the master and another is the detail. The master object controls certain behaviors of the detail object, like who can view the detail's data.
A Lookup relationship involves finding value of a field based on the value in another field in another object. It is mostly used in the case of commonly shared data between two objects.