Professional Documents
Culture Documents
Salesforce Object relationships is nothing but a two-way association between two Objects.
One Object record information is linked in another object record.
In Salesforce.com, Relationships are used to fetch data from other object records. Here the
parent ID is stored in pre-defined relationship.
One record of One object is linked to multiple records of another object and vice versa. In
Salesforce.com, We create Many-to-Many Relationship by creating two master-details
relationship with a common Junction Object.
1
What is Junction Object in Salesforce?
In Salesforce, Junction Object is custom object which is use to link one instance of a record
to many child records and many child records to on records equally.
Example:- The relationship between a company and a Customer is many to many
relationship because a company can sell a product to multiple customers and a customer can
purchase a product from multiple companies.
Q6 What are the different types of Relationships in SFDC? What are they?
1. Master-Detail relationship.
2. Look-up Relationship.
3. May-Many Relationship.
4. Hierarchy Relationship (we can not use this relationship).
2
Q8 What is “Master-Detail Relationship”?
Self Relationship is nothing but creating relationship between two same objects. This Self
Relationship is a Look-up Relationship to the same object.
Roll-Up Summary field in salesforce calculates values from a set of related records’
No.
No. roll up summary fields are read only fields and they can not be edited.
3
Yes, we can create Roll up Summary field on parent object only with master detail
relation between objects.
In salesforce, Junction Object are the part of the objects which joins one object to
another. These are specially used to join many objects in Many to Many relationships.
No
Yes, we can update the field of Parent record using workflow rule.
When master Record is deleted, it’s detail records are also deleted.
Q23 What happens to child record when a master record is deleted in Look-up
Relationship?
Q24 A custom object contains some records, now my requirement is to create field in
this object with master detail relationship?
No. we can no create master detail relationship first create look up relationship and
associate look fields for every parent record and then convert this to Master detail
relationship.
Q25. Can we create both master detail relationship and Look-Up Relationship at a
time?
Yes, we can create.