How to create a One-to-one relationship?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tedf20
    Member
    • Dec 2016
    • 36

    How to create a One-to-one relationship?

    Is is possible to create a one-to-one relationship; and if it's not, then why?

    I need it, so I am going to employ a workaround - create two One-to-Many relationships at both sides and autofill the second one after the first is filled. This should give the desired result (ability to filter Reports and trigger workflows at both sides), but won't it break anything in the long run? And can it be done easier?

    Thanks!

    P.S. I use EspoCRM 4.8.2 for the moment
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    Now it is possible only with file modification. As example you can use relationship between contact (originalLead) and lead (createdContact)
    in application/Espo/Modules/Crm/Resources/metadata/entityDefs/Contact.json and Lead.json

    Comment

    • devespo
      Junior Member
      • May 2017
      • 15

      #3
      Has this feature not been implemented yet? tanya, how exactly does entityDefs be modified/changed?

      Comment

      • tothewine
        Active Community Member
        • Jan 2018
        • 373

        #4
        After much time this was implemented.

        Comment

        Working...