Copy entity of another espo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jarmito1971
    Member
    • Feb 2019
    • 72

    #1

    Copy entity of another espo

    How I can copy full entity of 1 Espo instance to another one?
  • arthurmaciel
    Junior Member
    • Jan 2019
    • 19

    #2
    +1
    It would be really useful to have a step-by-step list of how to do it. Could anyone provide it?

    Thanks

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2730

      #3
      Hi,
      You can manually copy custom entity from here EspoCRM/var/www/html/568/custom/Espo/Custom. But note, that you have to copy/paste each file and directories with files linked to this entity. After you finish this make a rebuild.

      Comment

      • arthurmaciel
        Junior Member
        • Jan 2019
        • 19

        #4
        Maximus, thanks! The question is precisely about which files should be copied?

        Comment

        • Maximus
          Senior Member
          • Nov 2018
          • 2730

          #5
          For example:
          /espocrm/custom/Espo/Custom/Controllers/ENTITY.php
          /espocrm/custom/Espo/Custom/Entities/ENTITY.php
          /espocrm/custom/Espo/Custom/Repositories/ENTITY.php
          /espocrm/custom/Espo/Custom/Services/ENTITY.php
          /espocrm/custom/Espo/Custom/Resources/layouts/ENTITY/*
          /espocrm/custom/Espo/Custom/Resources/metadata/clientDefs/ENTITY.json
          /espocrm/custom/Espo/Custom/Resources/metadata/entityDefs/ENTITY.json

          Also, any othrer files like formula, scope, etc. should be copied.

          Comment

          • Sinoohe
            Junior Member
            • Apr 2020
            • 3

            #6
            Please check this link:


            Comment

            Working...