One to One relationship in Salesforce is not available out of the Box. But we can definitely achieve this by creating a new field and a workflow rules to update the field value with record ids of the other side of the one to one relationship.
Suppose we need to create a One to One relationship between Accounts and Contacts. For that use the below steps –
i) Create a custom field
Create a custom field on the Contact object. Make the field unique. This field would be used to hold the ID of the associated Account.
ii) Create a Workflow rule
Create a Workflow rule on Contact. Update the custom field with the value of the associated Account record ID.
Latest posts by Gopal Das (see all)
- Salesforce Certified Platform Developer I – Winter ’18 Release Exam - November 23, 2017
- Salesforce Certified Platform App Builder – Winter ’18 Release Exam - November 22, 2017
- Salesforce Certified Administrator – Winter’ 18 Release Exam - November 21, 2017