Copy module

Hello,

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.

Thanks

Parents
  • Hi Dave,

    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.

    -Alan

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

    Thanks again

  • Hi Dave,

    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!

    -Alan

  • Hello,

    I changed the ''Lead'' and ''Leads'' and I succed to upload the zip file. Now, I got this message when trying to install it :

    Display Log

    Failed to copy cache/upgrades/temp/vfZSDK/SugarModules/modules/Customers/metadata/SearchFields.php to custom/modules/Customers/metadata/SearchFields.php

    Any idea?

Reply Children