Super Clone Pro
Transfer Configurations Between Orgs
Transferring configurations between Orgs can be done on the Import/Export Configurations page. Configuration data can be copied from the export page section in one environment and pasted into the import page section of a different environment. This can also be used as a quick way to duplicate an existing configuration.
A link to the Import/Export Configurations page is found at the bottom of the Configuration List page. Clicking this link will load the Import/Export Configurations page into a new tab.
Export is the default view, and the view can be toggled to the Import view by clicking the button at the top of the page titled “Import Configurations”. On the Export view, a list of the current configurations will be displayed.
Click on the configuration name link to load data from the configuration. A JSON string will appear in the text box. Copy this text, and paste it into the Import page of the environment you are transferring the configurations to.
The Import page consists of a text box to paste the configuration data into and an Import button. There is a validation that will prevent you from entering a configuration with the same name as one that already exists, and one that requires the primary object to be valid. Invalid child objects, relationships, and fields will not be added to the configuration, and a warning message will inform you if any were skipped.
Paste the configuration data into the text box, and click the Import button to create the new configuration.
The other way to transfer configurations between Orgs is by using a data transfer tool to move records from objects CloneConfiguration__c, CloneObject__c, and CloneField__c to a new org. Below are instructions on how to do this using Salesforce’s ApexDataloader.
ApexDataloader
Download, install, and setup ApexDataloader
It can be found in your Salesforce Org under: Setup -> Data Management -> Data Loader
Export the Data to CSV files
Launch ApexDataloader
Click the Export button. It will ask you to login the first time you connect. Login to the Org that contains the Super Clone Pro configurations you want to move.
The list of objects available in the org will appear. Export records for all three Super Clone Pro configuration objects.
- Clone Configuration (lcrm_scp__CloneConfiguration__c)
- Clone Object (lcrm_scp__CloneObject__c)
- Clone FIeld (lcrm_scp__CloneField__c)
The dataloader will prompt you to select fields to export for each objects clone process. Select all fields for each of the exports, and proceed through the export process for each.
You should now have extracted records for three objects used for Super Clone Pro Configurations, and there are three CSV files on you local drive that contain the data.
Logout
Close the ApexDataloader, and this will log you out of the org that you extracted the configurations from. You can also click the application menu, File -> Logout
Import CSV Files
Re-open the ApexDataloader. Data for the objects Clone Configuration, Clone Object, and Clone Field will be be loaded in that order. Clone Configuration will be Inserted. Clone Object and Clone Field will be Upserted.
Insert Clone Configuration
Click the Insert button on the main data loader window.
Select Clone Configuration in the window that shows a list of objects available in the destination org.
Choose the Clone Configuration CSV file that was exported earlier.
Create a New Map when prompted. The mapping should look like the image below.
- Click the Auto-Match Fields to Columns button to match the CSV fields to the destination object fields with the same names.
- Match the field ‘lcrm_scp__ExtID__c’ to the File Column Header ID field.
- Remove ‘OwnerId’ field mapping.
Click the OK button to return to the previous window.
Click the Next button, and select a directory to save data loader logs.
Click the Finish button to run the transfer for the Clone Configuration object.
A window will appear with success and failures. Click the OK button, and return to the main window.
Clone Object Upsert
Click the Upsert button on the main data loader window.
Select Clone Object in the window that shows a list of objects available in the destination org. Choose the Clone Object CSV file that was exported earlier, and click the Next button.
Select ‘Id’ when prompted for the field for matching on lcrm_scp__CloneObject__c.
Select ‘lcrm_scp__ExtID__c’ when prompted for the field for matching on lcrm_scp__CloneConfiguration__r.
Create a New Map when prompted. The mapping should look like the image below.
- Click the Auto-Match Fields to Columns button to match the CSV fields to the destination object fields with the same names.
- Match the field ‘lcrm_scp__ExtID__c’ to the File Column Header ID field.
- Match the field ‘lcrm_scp__CloneConfiguration__r:lcrm_scp__ExtId__c’ to the File Column Header LCRM_SCP_CLONECONFIGURATION__C field.
- Remove ‘OwnerId’ field mapping.
Click the OK button to return to the previous window.
Click the Next button, and select a directory to save data loader logs.
Click the Finish button to run the transfer for the Clone Object object.
A window will appear with success and failures. Click the OK button, and return to the main window.
Clone Field Upsert
Click the Upsert button on the main data loader window.
Select Clone Field in the window that shows a list of objects available in the destination org. Choose the Clone Field CSV file that was exported earlier, and click the Next button.
Select ‘Id’ when prompted for the field for matching on lcrm_scp__CloneField__c.
Select ‘lcrm_scp__ExtID__c’ when prompted for the field for matching on lcrm_scp__CloneObject__r.
Create a New Map when prompted. The mapping should look like the image below.
- Click the Auto-Match Fields to Columns button to match the CSV fields to the destination object fields with the same names.
- Match the field ‘lcrm_scp__ExtID__c’ to the File Column Header ID field.
- Match the field ‘lcrm_scp__CloneObject__r:lcrm_scp__ExtId__c’ to the File Column Header LCRM_SCP_CLONEOBJECT__C field.
- Remove ‘OwnerId’ field mapping.
Click the OK button to return to the previous window.
Click the Next button, and select a directory to save data loader logs.
Click the Finish button to run the transfer for the Clone Object object.
A window will appear with success and failures. Click the OK button, and return to the main window.
That is it. You should now see the configurations in the Super Clone Pro Configuration page.