Copy entity of another espo

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

    Copy entity of another espo

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

    #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
      • 2731

      #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
        • 15

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

        Comment

        • Maximus
          Senior Member
          • Nov 2018
          • 2731

          #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:
            As we know EspoCRM already support four entity types (structure templates) for now: • Base. • Base Plus • Person. • Company.But sometimes you may need to clone an existing entity including all related functionalities. For example you may want to duplicate the "Meeting" or "Call" ones, or even to duplicate custom entities definitions you made by your hand from one crm to another or in the same crm.Let's say we want to clone the "Meeting" entity as example to a new entity names "Lesson",- Create t


            Comment

            Working...