Is there a way to copy/duplicate a module?
I customized my ''Leads'' module and I would like to copy/paste the content (fields, layout, etc.) in my ''Customer'' module.
The easiest way I can think of would be to use the Export Customizations function in Studio. This will give you a Module Loader package for installing customizations from the modules you select. If you choose Leads, then you can unzip the package, go through all the files and change the module name to your custom module, then rezip it. Then you can upload and install it to get the customizations copied over. Let me know if you have any questions about this.
Thank you Alan,
I exported it and changed the folder name (I know you wrote to change in the files, but I can't find any file with the word ''leads'' in). So I uploaded it, but I wasn't able to install it...
So I tried to uploaded it without any folder change and that worked. I also installed it and that worked too. But once the module installed, I can't find it in the studio...
Can you help me?
The export should provide you with a zip file containing the customizations for each module you checked during the Export Customizations process. Unzipping this should give you some folders with files in them, many of them having something like this: $dictionary['Lead']['fields']['field_name']
Anything that says 'Lead' or 'Leads' should be changed to your custom module name. Then, rezipping the root folder should give you an installable zip file. (Did you get any error messages after uploading the file to Module Loader?) The custom module should already be installed/deployed in your instance before uploading and installing, as this will install the custom fields and relationships to an already existing module. Does that make sense? Let me know if you have any other issues or questions!
I changed the ''Lead'' and ''Leads'' and I succed to upload the zip file. Now, I got this message when trying to install it :
Failed to copy cache/upgrades/temp/vfZSDK/SugarModules/modules/Customers/metadata/SearchFields.php to custom/modules/Customers/metadata/SearchFields.php
How you fix this problem?? I have the same error! Please, help me
Can you confirm that custom/modules/Customers is the correct path for this module? It may have a prefix on it (something like XYZ_Customer) if you created it via Module Builder. If this is the case, update the folder in the zip file, as well as the reference to it in manifest.php. Let me know if this helps!
Retrieving data ...