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
nikki goudnikki goud 

what is the relation ship between accounts and contacts

what is the relation ship between accounts and contacts
Vatsal KothariVatsal Kothari

Account and contact is having One to Many relationship.(1 : n)

i.e 1 Account can have multiple Contact, which will act as Master Detail relationship, where Account is Master & Contact is Detail,

So If you delete any of the Parent Account its all child Contacts also get deleted.

If this solves your problem, kindly mark it as the best answer.


Hi Nikki goud ,

The relation between account and contact is lookup relationship.
But it act as master detail like when u delete a account it delete the the related contacts also.
Beacuse  this relationship has a property called CascadeDelete set to true.
This is why the contact is deleted when the parent object is deleted. 

nikki goudnikki goud


Thanks for your reply

The relationship between Accounts and Contacts is not Master 

Detail Relationship its actually look up relationship. in master detail relationship we can create a rollup summery but we cant create a roll up summery in the Accounts object  on to contacts.
so its clearly says that it is not aMaster detail relationship