[SalesForce] Converting lookup relationship into master detail relationship

I had converted lookup relationship into master detail for a child object which contains lakhs of records. So when a parent record is deleted, all these child records has to be deleted automatically since now the relation has been converted into master-detail. Will this standard deletion throws some error since the records size is huge?

Best Answer

If you have already done conversion ,the child records will be auto deleted upon parent record deletion.Look for if you have any triggers on the deletion of parent record as that could impact deletion.

Below are some of the considerations that one should consider before changing relationship from lookup to master detail

  1. Make sure that every child records has a parent assigned .If you have records with no parents assigned the conversion will fail
  2. All child records will have the ownerId as that of parent and the sharing settings will be inherited of the Parents .
  3. Make sure you don't have reports referencing the field.If you have then those have to recreated as they might throw error .

In short it does not matter how many records you have ,the system automatically takes care of conversion , however be sure to review the implications listed above and first make these changes in sandbox and experiment before doing this change in PROD environment .

Related Topic