Hi murugappan, I completely agree with you that core code should not be tempered with because it can create a lot of unintended problems.
My suggestion to look into the script was just to learn what kind of folders and files are created by the Administration panel create entity facility, to be able to design (hopefully) an "ungrade safe" way to clone entities through a custom php script.
Cheers :-)
Need a way to duplicate entities and layouts
Collapse
X
-
Hi, perhaps this can help, here's how Espo creates custom entities from the Administration panel:
https://github.com/espocrm/espocrm/b...ityManager.php
One of the things i learnt really hard way is that its never good to temper with the code. Reasons:
(1) Version change, everything may become useless and may require extensive rework, testing and migration
(2) When someone takes over from me, it will be real pain to him and me in terms of maintenance and handover.
Better to avoid this pain than to be sorry later. Rather try and use espcrm idea. Thank you so much guys. Wonderful people. -
Hi @espcrm
Leave a comment:
-
From my host transfer I learn that most Entity file is in a folder call Custom
\custom\Espo\Custom\
Maybe you can just copy the entity you want, paste it under a new Filename. After that do the normal clear cache and rebuild and see if it show up. If it show up under the new name, then just edit it from the GUI afterward.
Essentially you can "copy/paste" layout. The issue you may have is the "database", will doing this create a database table for you? Not sure.Leave a comment:
-
Need a way to duplicate entities and layouts
Hi,
One of the problems we face is the inability to export or duplicate (clone) an entity, layout or fields. This would be really helpful to develop new products faster with less mistakes. I know there aee currently no such facility but I feel it can be done in the back end. Only thing is i could not find sufficient technical documentation to help me do that. Appreciate any guidance in this. Thank you so much.Tags: None
Leave a comment: