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
Sujan Kumar ReddySujan Kumar Reddy 

Which type of relationship exists b/w Salesforce Standard objects??

Hi Salesforce Gurus,

 

I want to know which relationship is maintained between Salesforce standard objects i.e Account, contact and Case Solution, Campaign lead, etc,... Is it Master detail relationship or look up relationship? One of my buddy having 6 years of experience in Salesforce.com said that "there is no such relationship is maintained in between Salesforce standard objects, These relationships are meant for only custom objects.." Is  it true?  If the relationship is Master detail, it will not follow few things, like master is mandatory while creating the contact record and if we delete account record contact record is not deleted, Could anybody explored on this?? If anybody came across please share a document or any URL saying about relationships for Standard objects in Salesforce.com. Thank you in advance!!

@anilbathula@@anilbathula@

Hi sujanKumarreddy

 

Go through this link about the relation ships between the standard objects in salesforce.

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_erd_majors.htm

https://login.salesforce.com/help/doc/en/relationships_considerations.htm

 

 

Thanks

Anil.B

Sujan Kumar ReddySujan Kumar Reddy

Thanks for your reply Anil, Happy to see the relationship diagram of all Salesforce Standard Objects, Still i have a doubt whether which type of relationship is maintained in between them. i.e Master detail or Look up? If Mater detail relationship is there between Account and Contact, While creating Contact record a Account record is mandatory know, like wise if we delete any Account, the contacts should be deleted right,  but this is not followed, How come you justify for this? Do you have any idea? Thank you!!

@anilbathula@@anilbathula@

Hi sujankumarreddy

 

Just try create a  2 contacts for a account.

And then delete the account and please check the contacts wether exist or deleted.

When ever a account is deleted .the related contacts for that also will be deleted.

By looking at view it will be a lookup relationship between Contact and Account.

By default it act like master detail.

 

Thanks

Anil.B

SYED MOOSA NAZIR T NSYED MOOSA NAZIR T N
Hi All,

Salesforce maintains the relationship of the objects in their architecture. Kindly see the below link for the different relationships available in Salesforce.
https://help.salesforce.com/HTViewHelpDoc?id=overview_of_custom_object_relationships.htm

And I would like to tell one more point on Account-Contact relationship.
Account-Contact are of LOOKUP relationship with "cascadeDelete" Enabled. 

What is mean by casecadeDelete?
Whenever a Parent Record (Account record) is deleted, its child records (Contact record) will automatically gets deleted.
And as you know that, in looup relationship, child object records can be without parent. i.e., Contact record can be without an Account.
By default, Salesforce has enabled the "cascadeDelete" for Account and Contact standard lookup relationship.
To cross verify, you can check in the https://workbench.developerforce.com site.
Hope this is clear.
Mark this as Answer if you are clear. :)

Regards
Syed Moosa Nazir TN
 
Arpit Sethi 9Arpit Sethi 9
Its a bit different kind of relationship between standard objects. For an example Accounts and Contacts, When we create contacts then it follows Lookup Relationship thats why its not mandatory to select Account but When we delete Account then it follows Master-Detail Relationship thats why associated Contacts are deleted.