Let the platform do the work

Migrating Customizations Between Instances

Overview

Administrators in Sugar can make customizations to modules via Studio as well as create custom modules via Module Builder. Occasionally, Studio and Module Builder customizations developed in one instance may need to be migrated to another instance. This article will go over how to migrate both Studio and Module Builder customizations between different instances.

Use Case

In this example, we will migrate the Studio and Module Builder customizations created in a development environment to a production environment.

Prerequisites

You will need to have existing customizations made to modules via Studio. You will also need to have an existing custom module or create a new one via Module Builder. For more information on creating customizations or custom modules, please refer to Studio and Module Builder documentation.

Note: Sugar Sell Essentials customers do not have the ability to upload custom file packages to Sugar using Module Loader.

Steps to Complete

Migrating Module Builder Customizations

The Export and Publish options in Module Builder both create a zip file containing the custom module package which can be migrated to another instance. The Publish option will have the custom module show up in Studio once it is installed. The Export option will have the custom module appear in Module Builder, which will need to be deployed in the instance once it is ready for use.

We will go over how to publish or export a custom module created in the development environment and install the package into the production environment as an example.

Export Custom Module Package

  1. Navigate to Admin > Module Builder in the development environment.
  2. Click on the package name and click either the Publish or Export button.
    • Publish: Click "Publish" to create a zip file containing the custom module package to be saved on your local machine. The custom module will appear in Studio once the package is installed via Module Loader. Additional configurations can be made to the custom module via Studio as necessary.
    • Export: Click "Export" to create a zip file containing the custom module package to be saved on your local machine. The custom module package will be visible in Module Builder once it is installed via Module Loader. Further customizations can be made to the custom module via Module Builder before deploying it in the instance.
      Publish or Export the package
  3. The system will create a zip file to be saved on your local machine.

Install Custom Module Package

  1. Navigate to Admin > Module Loader in the production environment.
  2. Click the Choose File button to select the package containing the custom module from your local machine.
  3. Select your file and click "Open".
  4. Click the Upload button to upload your package.
  5. Click the Install button to the right of the package name.
  6. Accept the License Agreement and click "Commit".
  7. Click the Back to Module Loader button once you see the Module Installed Successfully message.
  8. Once the package is successfully installed in the production environment, the custom module will appear in either Studio or Module Builder.

Migrating Studio Customizations

Module customizations made in Studio such as custom fields, layouts, and field labels can be exported from one instance and migrated to another instance. We will go over how to export the Studio customizations from the development environment and install the package into the production environment as an example.

Export Studio Customizations

  1. Navigate to Admin > Studio in the development environment.
  2. Click the Export Customizations button.
    Export customizations
  3. Enter the package name, author, and description.
    • Package Name: Enter a name for the custom package you will be exporting.
    • Author: Enter your name as the author.
    • Description: Enter a description for the package.
  4. Select the modules you wish to export the customizations for.
  5. Click the Export button.
    Export the customizations.
  6. The system will create a zip file to be saved on your local machine.

Install Studio Customizations

  1. Navigate to Admin > Module Loader in the production environment.
  2. Click the Choose File button to select the package containing the Studio customizations from your local machine.
    Module loader choose file
  3. Select your file and click "Open".
  4. Click the Upload button to upload your package.
  5. Click the Install button to the right of the package name.
    Install Package
  6. Click "Commit" on the Ready To Install page.
    Click Commit
  7. Once the package is installed successfully, you will be redirected to the Module Loader page.
  8. Once the package is successfully installed, the system will apply the Studio customizations to the specific modules in the production environment.