Apr 29, 2019 | 0 Comment | Posted by Shrey Sharma

Relationship

It is a 2 way association between 2 objects. Using relationship we can link objects with each other and we can make connection and display data about other related objects.

In relational database
~To create relationship between two tables. We use the concept of primary key and foreign key.

~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 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.

 

In salesforce there are basically 2 types of relationship fields:

Share This Post

Leave a Comment

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