Unlike the relationships in relational database, the relationships in Salesforce are not over Primary and Foreign Keys. The relationships are upheld by using the Relationship Fields. It is a custom field which relates one object record to another. Over the creation of relationships, we can show the data of all the related records in the record's details page.
The Master Detail relationship is used when we need to control the show of detail records based on the value in the master record. For instance, in the courier company model a delivery schedule is constantly linked to a delivery location. If we eliminate a delivery location from our list, then all the connected delivery schedules must also be eliminated. Such a dependence can be realized through Master-detail relationship between the sales force objects.
In this unit, we will debate the features of Master-detail Relationship. The features are listed below −
In the courier company instance, we will reflect the relationship amongst delivery location and delivery schedule. There is a many-to-one relationship amongst the delivery schedule records and the delivery location record.
Resulting are the steps followed to create this relationship −
In setup home, find the object named Delivery Schedule. In it under the Custom Fields and Relationships related list, click New. Choose the Master-detail Relationship as shown in the screenshot underneath.
In the next step, choose the object with which this association will be formed. We choose DeliveryLocation.
In this step, enter the Relationship Name as well as the name of the Field.
In the Resulting step we receive the defaults and move on to add the reference field to the page layout.
Following, we specify the title for the related list that is related layout with the parent.
This finishes the creation of Master-Detail relationship amongst DeliveryLocation and Deliveryschedule.
Salesforce Related Interview Questions
|AJAX Interview Questions||Software Engineering Interview Questions|
|Salesforce Admin Interview Questions||Salesforce Developer Interview Questions|
|Apex Interview Questions||Visualforce Interview Questions|
|Salesforce Crm Interview Questions||Salesforce Lightning Interview Questions|
|Salesforce Report And Dashboard Interview Questions||Salesforce Integration Interview Questions|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.