How do objects in force.com relate to each other? How are Contracts related to Contacts for example? Could someone recommend any literature explaining this?
There are different kind of relationship in salesforce
1. Master detail : Tightly Bind , Required to provide reference in child to insert a child , if parent gets deleted child also gets deleted that is cascaded delete. Sharing rights on child are determined by rights on parent.
2.Lookup Relationship : Loosely bind , not required to provide reference , like Contact has lookup relation with Account , it can exists with or without a reference of account , no cascaded delete , sharing rights of child are independent of parent.
3. Self : if a object has lookup relationship with itself , like account has a parentID which has parent account record reference.
4. many to many : In this we have junction object
Like a Object
Contact
Location
then junction object ContactLocation will be having master detail with both contact and location where Contact and Location would be master and ContactLocation will be child.
Is it??? The post creator knows very well which post is to be marked and which not to be. Also info from your side are no where stand outside the links provided by me. Hope you got my point :)
Links provided by you might have provided more info but the info I provided was also correct and enough for making base . It was just a welcome comment to him if in any case he thanked me too. :) , I hope thanking him did not hurt you mate :)
Even if ur reply got marked others can say welcome as we also tried to help him.
Please guys this is not necessary. I was thanking everyone for guiding me and show my appreciation for your willingess to share and handhold newbies like me. Again thank you all.
Please have a look :
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_custom_objects.htm
http://www.salesforce.com/us/developer/docs/api/Content/relationships_among_objects.htm
All Answers
Please have a look :
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_custom_objects.htm
http://www.salesforce.com/us/developer/docs/api/Content/relationships_among_objects.htm
Objects in salesforce are related by having look -up relationships or Master-Detail relationships.You can also have Many-to -Many relationships.
Account and contacts have master -detail relationship i.e if account is deleted contacts are also deleted.
Contacts and contracts are not related. You can create one by defining contact look-up on contracts object.
There are different kind of relationship in salesforce
1. Master detail : Tightly Bind , Required to provide reference in child to insert a child , if parent gets deleted child also gets deleted that is cascaded delete. Sharing rights on child are determined by rights on parent.
2.Lookup Relationship : Loosely bind , not required to provide reference , like Contact has lookup relation with Account , it can exists with or without a reference of account , no cascaded delete , sharing rights of child are independent of parent.
3. Self : if a object has lookup relationship with itself , like account has a parentID which has parent account record reference.
4. many to many : In this we have junction object
Like a Object
Contact
Location
then junction object ContactLocation will be having master detail with both contact and location where Contact and Location would be master and ContactLocation will be child.
Thank you very much. These are very helpfull and things are starting to make sense.
Your welcome , I hope you were pointing toards my reply. :)
@Shashikant
Is it??? The post creator knows very well which post is to be marked and which not to be. Also info from your side are no where stand outside the links provided by me. Hope you got my point :)
@ankit
Links provided by you might have provided more info but the info I provided was also correct and enough for making base . It was just a welcome comment to him if in any case he thanked me too. :) , I hope thanking him did not hurt you mate :)
Even if ur reply got marked others can say welcome as we also tried to help him.
No problem at all. Hope you know what you have written in your previous post. No offences, happy posting.
Please guys this is not necessary. I was thanking everyone for guiding me and show my appreciation for your willingess to share and handhold newbies like me. Again thank you all.
Never mind, me and Shashikant are true buddies :)