function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kathirkathir 

Custom Fields Dependencies

Hi , 

 

             I Created 2 Objects . First Objects Record will be used by Second Objects by  i.e, Look up Relationship.

But problem here is Its allowing to delete First Objects Records even though its been used in Second Object.

aalbertaalbert

If you use a "Master Detail" relationship, it enables a cascade delete so when the parent object is deleted, so is the child object. A 'lookup' relationship does not enforce a 'cascade delete' as you have seen.

kathirkathir

Thx  , but my scenario is that first to delete detail and then only master should be deleted . thst is it should not delete Master Record if it is referenced (or used)  in other objects .