Free Salesforce Admin Tutorial >

Chapter 4 - Data Modelling >

Relationship in Salesforce

Relationship in Salesforce

What You’ll Learn

tick What are relationships in salesforce?

tick What are the different types of relationships in Salesforce?

What Is Salesforce Relationship?

Salesforce Relationship is a 2-way association between 2 objects. By creating relationship fields, we can link objects with each other and we can make connections and display data about other related objects. There can be only 40 custom Relationships fields on a single object.

Relational database 

  • To create a relationship between two tables. We use the concept of primary key and foreign key. 
  • The primary key resides on the table which is one in a many-to-one relationship.
  • Foreign Key resides on the table which is many in a many-to-one relationship. 

In Salesforce

  • To create a relationship between two objects, we use relationship fields. 
  • The field is created on the many-side object and it is related to the one-side object. 

Types Of Relationship In Salesforce

In Salesforce, several types of relationships can be established between objects. Here are some of the most common ones:

1. Master-Detail Relationship In Salesforce

Master-Detail Relationship is a parent-child relationship between two objects where the detail side object depends on the master object. When the record of the master object is deleted, all the related detail side records will also get deleted. A child record cannot exist without a parent record. 

2. Lookup Relationship In Salesforce

Lookup Relationship is a relationship where one object has a reference to another object without any dependency. Unlike a master-detail relationship, the child object can still exist even if the parent object is deleted.

Download Study Material

Get access to exclusive study material for Salesforce Certification and ace your exams!

Download Now

Our Salesforce Certification Courses

Hey there! Glad you made it through our Salesforce Admin Training for beginners. But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.

Post a Comment

Your email address will not be published. Required fields are marked *