A Relationship is connection b/w two objects.
In salesforce,there are 4 types of relationships here.
- Look-up Relationship
- Master Detail Relationship
- Many to Many Relationship
- Hierarchical Relationship
Difference Between Master-Detail and Look-up Relationship's as shown below :
Master-Detail Relationship :
- Master-detail field value's are mandatory.
- Values can be assigned only once and cannot be changed.
- We can create maximum number of relationships are 2.
- Cascading delete is an effect i,e if master-detail deleted,all the associate child records are also deleted automatically.
- Master-detail cannot be created if records already exists.
- Access rights are inherited to the child from the Master.
- Look-up field value's are not mandatory.
- Values can be assigned any point of time and can be modified at anytime.
- We can create upto 25 look-up relationships.
- Cascading delete is not effect i,e If parent record is deleted,child record is not deleted.
- Lookup can be create if records already exists.
- Access rights are not inherited.
No comments:
Post a Comment