+ Start a Discussion
srikanth j 24srikanth j 24 

Relationships In Salesforce

How many relationships we have in salesforce and why we need relationship can anyone explain with 1 example
Adv Thanks.
sfdcMonkey.comsfdcMonkey.com
hi srikanth 

Relationships allows us to create links between one object and another. The platform supports following relationship types

Master-Detail (1:n)
A parent-child relationship in which the master object controls certain behaviors of the detail object.

Lookup  (1:n)
This type of relationship links two objects together, but has no effect on deletion or security. Unlike master-detail fields, lookup fields are not automatically required. When you define a lookup relationship, data from one object can appear as a custom related list on page layouts for the other object. See the Salesforce online help for details.

Many-to-Many 
You can use master-detail relationships to model many-to-many  relationships between any two objects. A many-to-many relationship allows each record of one object to be linked to multiple records from another object and vice versa.
To create a many-to-many relationship, simply create a custom junction object with two master-detail relationship fields, each linking to the objects you want to relate.


for more understanding follow the link -: 
http://www.salesforcetutorial.com/object-relationships-in-salesforce/

Thanks 

Please mark it as solved if this helps you so that it will make for others as a proper solution ;)