Announcement

Collapse
No announcement yet.

Copy entity of another espo

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Copy entity of another espo

    How I can copy full entity of 1 Espo instance to another one?

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


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


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

        Comment


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


          • #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...
            X