All pages
1 of 3

Loading...

Loading...

Loading...

Migration Record Mapping Tools

The Record Mapping Rule tool is used to create rules telling CopyStorm/Restore how to map between records in the CopyStorm backup to records in the target Salesforce. This is very useful for migration in mapping Salesforce users and a variety of core Salesforce configuration records.

For example:

  • Mapping Salesforce Users by their email address.

  • Map Record Types based on record type (where the names are not the same in CopyStorm and the target Salesforce).

CopyStorm/Restore includes default mapping rules for a few common tables. However, these rules do nothing by default because no specific mappings are supplied.

Additional tables can be added by clicking on the “Add Record Mapping Rule…” button at the bottom of the tool.

To add or modify the mappings for a specific table, click on the “Edit” button next to its name. A dialog will appear showing existing mappings allow them to be edited or removed and allowing additional mappings to be imported from a CSV file.

When the Save Changes button is clicked, CopyStorm/Restore will validate the mapping rules looking for entries that are missing in either the CopyStorm database or in Salesforce. Though missing entries will be silently ignore during the restore process, cleaning them up is almost always the right choice.

In addition to mapping rules provided on the Migration Setup tab, CopyStorm/Restore will always map records using a handful of built-in mapping rules. Mappings on the Migration Setup tab will override the default mappings.

Object
Mapping Rule

User

Field matching on Email

Profile

Field matching on Name

UserRole

Field matching on Name

Group

Field matching on DeveloperName and Type

RecordType

Field matching on Name and SObjectType

Built in Mapping Rules

Pricebook2

First map the Standard Pricebook in CopyStorm to the Standard Pricebook in Salesforce, then use field matching on Name

Organization

If the CopyStorm database contains 1 Organization, map it to the current User’s Organization. If this does not map, the CopyStorm database contains conflicting information from multiple Salesforce instances.

Original Record Id Rule Tools

The Original Record Id Rule tool is used to create a custom field in the target Salesforce and populate the new custom field with record Ids from the CopyStorm backup database. This is useful in a number of migration scenarios when the original Id of records being migrated must be maintained.

For example:

  • The Original Id may be used after the migration to correlate data between the source and target orgs.

  • Salesforce Id may be used as a key by an external system which must be able to access the original Salesforce Id.

Original Id Field Configuration

Original Id field creation is enabled by checking the “Enable this Feature” checkbox. Available options include:

Configuration Option
Description

Enable This Feature

Check this checkbox to enable Original Id column creation and population.

Field API Name

The Salesforce API Name of the Original Id field. This field will be created automatically if it does not already exist.

Field Label

The Label to use when creating the Original Id field.

Permission Set Name

When creating an Original Id field on a Salesforce Object, CopyStorm/Restore will update this Permission Set to allow access to the new field. This permission set will be created and assigned to the CopyStorm/Restore Salesforce User if it does not already exist.

Field Description

The Description to use when creating the Original Id field.

Migration Setup Tab

The Migration Setup tab contains tools which are useful when migrating data to a Salesforce instance unrelated to the Salesforce instance used to create the CopyStorm backup.

This is useful when trying to perform tasks like:

  • Mapping Users in a CopyStorm backup to users in the target Salesforce. In this case, Salesforce Ids will not work due to being unique to a Production or Sandbox instance’s setup. The Record Mapping Rule tool on this page supports implementing and establishing rules that CopyStorm/Restore will use to map users from the CopyStorm backup to users in the target Salesforce.

  • Maintaining Salesforce Ids in a CopyStorm backup when creating data in the target Salesforce. In this case, Salesforce Ids will be regenerated when data is inserted. The Original Record Id Rule tool on this page supports creating and populating a new custom field to maintain the source CopyStorm database Id values.

Related Articles

Migration Record Mapping Tools
Original Record Id Rule Tools