Hello, Salesforce allows One to many and Many to many Relationships .You can establish a one to one relationship by follwing steps 1. create a master detail relationship between two Object. 2. On master Object create a rollup summary field which count the child records 3. Now write trigger on child Object which checks if the rollup summary count on master is equal to one then throw an error that the master have already one record attached select another. This way every master Object have one record of the other objec hence one to one relaship is established. You can follow this link for more detail: http://www.infallibletechie.com/2013/05/how-to-create-one-to-one-relationship.html
Please refer below link. More than options are available. http://salesforce.stackexchange.com/questions/7282/how-to-create-a-one-to-one-relation-between-two-objects
Hello, Salesforce allows One to many and Many to many Relationships .You can establish a one to one relationship by follwing steps 1. create a master detail relationship between two Object. 2. On master Object create a rollup summary field which count the child records 3. Now write trigger on child Object which checks if the rollup summary count on master is equal to one then throw an error that the master have already one record attached select another. This way every master Object have one record of the other objec hence one to one relaship is established. You can follow this link for more detail: http://www.infallibletechie.com/2013/05/how-to-create-one-to-one-relationship.html
Salesforce allows One to many and Many to many Relationships .You can establish a one to one relationship by follwing steps
1. create a master detail relationship between two Object.
2. On master Object create a rollup summary field which count the child records
3. Now write trigger on child Object which checks if the rollup summary count on master is equal to one then throw an error that the master have already one record attached select another.
This way every master Object have one record of the other objec hence one to one relaship is established.
You can follow this link for more detail: http://www.infallibletechie.com/2013/05/how-to-create-one-to-one-relationship.html
Thanks
Ajay K Dubedi.
All Answers
You can create the following relationship only in salesforce,
1. One to Many
2. Many to Many
Please find the below link in order to acheive one to one relationship,
http://www.forcetree.com/2009/11/one-to-one-relationship-in-salesforce.html
Please refer below link. More than options are available.
http://salesforce.stackexchange.com/questions/7282/how-to-create-a-one-to-one-relation-between-two-objects
Thanks & Cheers,
Jigar(pateljb90@gmail.com)
Salesforce allows One to many and Many to many Relationships .You can establish a one to one relationship by follwing steps
1. create a master detail relationship between two Object.
2. On master Object create a rollup summary field which count the child records
3. Now write trigger on child Object which checks if the rollup summary count on master is equal to one then throw an error that the master have already one record attached select another.
This way every master Object have one record of the other objec hence one to one relaship is established.
You can follow this link for more detail: http://www.infallibletechie.com/2013/05/how-to-create-one-to-one-relationship.html
Thanks
Ajay K Dubedi.