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
JieMeJieMe 

account and contact relationship

first,when delete a account that standard object  record,associated contacts also are deleted.

 

second,sharing settings page ,contact can be controlled by parent .

 

they must be master-detail relationship,but force.com platform show they are lookup relationship

 

what are standard object account and contact relationship?and how does system bottom implement?

 

can anyone explain bottom principle? thanks!

 

srikeerthisrikeerthi

 

Hi Jieme

 

1.In Salesforce the relationship between Account and Contact is Master-Detail RelationShip,Where Account is Master and Contact is Child .So in Master-Detail relation,Whenever Master is deleted,the Child Records which are related to that

Master are deleted automatically.This is the Standard Functionality of Salesforce.

 

2.Next in Sharing Settings the Child Object do not have any seperate Permissions to be Shared because the

permissions are controlled by Master object itself,Because you cant see the Owner field on Child Object,it is controlled

by the Master Object.

 

   So the Sharing Settings which you specify for Master object are applicable for Child Object.

 

Thanks

Shashikant SharmaShashikant Sharma

1) No Relationship between contact and Account is not Master DetailIt is alookup relation ship. And it does not hav a cascaded delete. There must be some trigger which is deleting contact on account delete.

srikeerthisrikeerthi

Yes

 

I am sorry for the wrong information.The relationship is not Master-Detail,it is a lookup relation.

But the Contact records are deleted when the Account record is deleted.In some scenarios it behaves 

as Master-Detail,but it is not exactly Master-Detail.

JieMeJieMe

hi,Shashikant Sharma,thanks!

There must be some trigger which is deleting contact on account delete. i think so!

 

second,sharing settings page ,contact can be controlled by parent .can you explain it?

JieMeJieMe
srikeerthi  ,thanks!