Activity Forums Salesforce® Discussions How can we have one to one relationship between two object in salesforce?

  • PRANAV

    Member
    September 14, 2016 at 6:19 am

    Hi Mohit,

    You can do this by following these steps:

    • Create two objects Manager and Department.
    • Then create a Master-Detail relationship between the Department and manager.
    • Create a rollup summary field countManager (count) in department.
    • Create a validation rule in department object on countManager field. Throw an error "department can be managed by only one manager"when the countManager is greater that 1.

    Hope this helps you.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos