You need to sign in to do that
Don't have an account?
![prashanth murukonda prashanth murukonda](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
What happens when we convert MASTERDETAIL to LOOKUP relationship?
What happens when we convert MASTERDETAIL to LOOKUP relationship?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
You can convert a master-detail relationship to a lookup relationship as long as no roll-up summary fields exist on the master object.
You can convert a lookup relationship to a master-detail relationship, but only if the lookup field in all records contains a value
If you are converting a master-detail relationship to a lookup for a custom object on the “detail” side, the organization-wide default for the object is automatically updated to Public Read/Write. Similarly, converting a lookup to a master-detail-relationship changes the organization-wide default to Controlled by Parent
Thanks
Rahul
Master-Detail to Lookup Relation:
If We have Rollup summary in Master we cannot convert it to Lookup relation, But if we dont have rollup summary then we can convert it to lookup relation.
We cannot create master-detail relationship if that object already have 2 Masters.
Lookup Field in Child becomes universal not required field.we can set it as required or not required as our wish.
In OWD child setting is changed from Control by Parent to Public Read/Write.
Lookup to Master-Detail Relation:
If we already have records in child without parent we cannot convert lookup to master-detail relationship,If we have parent for all child records then we can convert lookup relationship to master-detail relationship.
That answer was resolved your issue, Please choose the best answer that will be helpful for other deverlopers.
Thanks and Regards,
Naveen S
1) https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/relationships_among_objects.htm
2)
Differences Between Lookup and Master-Detail Relationships
There are fundamental differences between the two types of relationships in areas such as data deletion, sharing, and required fields in page layouts.
Master-detail relationships are typically used when there is a direct dependency between the two objects. These relationships have the following unique features.
Lookup relationships are appropriate when a relationship between two objects is required in some cases, but not always. Typical scenarios for lookup relationships are:
NOTE:- You can convert a master-detail relationship to a lookup relationship as long as no roll-up summary fields exist on the master object. You can convert a lookup relationship to a master-detail relationship, but only if the lookup field in all records contains a value.