Need Assistance to Dump Relationships or Foreign Keys

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wlieske
    Junior Member
    • Dec 2025
    • 3

    #1

    Need Assistance to Dump Relationships or Foreign Keys

    I am currently trying to normalize my organization's data on Espo, but dumping the SQL database does not seem to provide the schema, which appears to be handled via Espo itself.

    I have two questions regarding this:
    1. How can I dump the schema for Espo and feed it to an ER diagram for easier analysis?
    2. Is it considered best practice to handle relationships in Espo?
  • victor
    Active Community Member
    • Aug 2022
    • 1103

    #2
    If I understand you correctly, you are asking about the functionality of different types of Reports: https://docs.espocrm.com/user-guide/reports/, which can be used if you have the Advanced Pack extension.

    Comment

    • wlieske
      Junior Member
      • Dec 2025
      • 3

      #3
      Originally posted by victor
      If I understand you correctly, you are asking about the functionality of different types of Reports: https://docs.espocrm.com/user-guide/reports/, which can be used if you have the Advanced Pack extension.
      These are in a similar vein but not what I am looking for.

      I'm trying to get something akin to a visual representation of the data you see in Administration > Entity Manager > [Entity Name] > Relationships, and for every entity at once.

      Comment

      • wlieske
        Junior Member
        • Dec 2025
        • 3

        #4
        It would also be acceptable to dump the relationships for every entity.

        Comment

        • shalmaxb
          Senior Member
          • Mar 2015
          • 1819

          #5
          Perhaps this helps:
          1. Go to custom->Espo->Custom->Resources->metadata->clientDefs and copy the JSON content of your entity.
          2. Go to this website: https://jsoncrack.com/editor and insert the json. You will get a diagram of the content.

          If you want a kind of table for your relationships, you can get this from AI (e.g. Gemini).
          Last edited by shalmaxb; 01-06-2026, 10:03 PM.

          Comment

          Working...