Relationship problems. Need help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hpoperator
    Junior Member
    • Nov 2025
    • 7

    #1

    Relationship problems. Need help

    Hello dear community,

    I am currently in the process of creating espoCRM (V 9.2.4) according to my requirements. Adding additional fields and the like works fine, but as soon as I start dealing with relationships, it's game over!

    I quickly became frustrated with the GUI in espoCRM because WHEN I was able to set something, the wrong entity was displayed, etc.

    So now I am editing the corresponding json files in the “entityDefs” folder using code.

    But here, too, I am falling from one problem into the next.


    Attached as a file attachment, I have “Status 0,” so to speak. Everything works fine with these files.

    But there are no additional relationships that I have created here yet.

    Also attached is a screenshot with the correct names of the entities (since my GUI language was set to German).


    Now I wanted to adjust the JSON accordingly with the following target relationships:

    Account --> CObjekt (already exists, works)

    CObjekt --> Account (already exists, work)

    Lead --> CObjekt (new)

    CObjekt --> Lead (new)

    CObjekt <--> CLieferant (m:n) (I already have - with cObjektCLieferant)

    Case --> CObjekt, Account, CLieferant (new), but without me Account/CObjekt would have to touch it again.


    Now to the changes:

    Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.




    When I clear the cache and start rebuilding, I get a 500 error in espoCRM and nothing works anymore.

    I would be very grateful if you could help me.

    Kind regards
    Attached Files
  • hpoperator
    Junior Member
    • Nov 2025
    • 7

    #2
    Does anyone have any advice on this?

    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1774

      #3
      Hi, it is quite difficult to understand, what you want to achieve. You can easily create relationships in the entity manager. It is the way to do it. I don`t recommend to do this via json, as there are several json files involved.
      To understand better, please write here, which entities you want to connect and what connections you need (1:n, n:1 etc.).
      I write in english (although I am German too), because the threads in english will be useful for many more people. But if you prefer in German, I can help as well.

      Comment

      Working...