You need to sign in to do that
Don't have an account?
Manid
how to create a one to one relationship between two objects using trigger
how to create a one-to-one relation ship between two objects in triggers?
is it possible? i wonder when a hear this from the interviewer in an interveiw. please post the code if solution is there.
is it possible? i wonder when a hear this from the interviewer in an interveiw. please post the code if solution is there.
Other option is , you can able to do it with configuration ( let’s consider the relation between the parent and child is master details , then create rollup summer filed and wrote validation on the rollups summery field if its count is great than one )
Refer this links
http://www.infallibletechie.com/2013/05/how-to-create-one-to-one-relationship.html
http://www.forcetree.com/2009/11/one-to-one-relationship-in-salesforce.html
https://medium.com/@MicroPyramid/how-to-create-one-to-one-relationship-between-objects-in-salesforce-b1dfd654de1c
https://salesforce.stackexchange.com/questions/7282/how-to-create-a-one-to-one-relation-between-two-objects