Scenario Migration Tool
The Migration Tool allows users to migrate Overcast integration scenarios and related data to other Salesforce organizations.
Use the Migration Tool when:
- Creating a new developer sandbox environment with a need to import scenarios from production or another environment.
- Developing an Overcast scenario in a sandbox environment and, once it's finished, exporting it to the production environment.
Scope of migration
Settings and records that can be migrated from one environment to another includes Integration Scenarios and related:
- Query Predicates
- Object Mapping
- Scheduled Jobs
- Scheduled Tasks
Migrating Apex code, triggers, and anything else should be managed using Change Sets, ANT or SFDX, because they are metadata, not data.
Remote Site Settings Setup
Add the two domains URL to the source organization's remote site settings. Follow the steps in the section Access Remote Site Settings in the Source Organization.
- Target organization's login domain URL
- For production environments https://login.salesforce.com
- For sandbox environment https://test.salesforce.com
- Target organization's unique domain URL
- See the section Get My Domain for the Target Organization.
Get My Domain for the Target Organization
- In the organization's Target organization Setup, type "my domain" in the search field.
- Select My Domain (highlighted).
- Copy the domain.

Access Remote Site Settings in the Source Organization
- In the organization's Source organization Setup, type "remote site" in the search field.
- Select Remote Site Settings (highlighted).
- Select New Remote Site.
- Enter the remote site name.
- Paste the URL from the Remote Site.
- Select Save.

Navigate to Remote Site Settings.

Add a new remote site.
Tutorial
Prerequisites
Before using this tool, the following conditions are required:
- The Overcast package must be installed into both the source and target organizations.
- Overcast is configured in both environments.
- Connection Strings for backend systems and Salesforce Job are created in both environments.
Step 1. Open the Migration Tool Page
- Navigate to the Integration Scenarios tab.
- Expand the list by selecting the dropdown.
- Select Scenario.
- Select Migrate Scenarios.

Step 2. Login
Enter the credentials for a system administrator (Overcast Design-Time User) in the target organization.

- Enter the Salesforce username.
- Enter the password. (Note: There may be a requirement to append the security token to the password "password+token")
- Select the type of environment for the target organization.
- Select Login.
Step 3. Connection String Selection
Select the Source Connection String (1). Upon selection, the target connection string picklist is updated with the target connection strings. Only connection strings of matching type are displayed (2).

Step 4. Scenario Selection
Select the scenarios to migrate (1).
Step 5. Execute Migration
Select Execute migration (2).
Please be patient. For larger migrations or slower organizations, the migration can take a few seconds.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy83NDg4LzMyMTM5L2NrZmluZGVyL2ltYWdlcy9FeGVjdXRlTWlncmF0aW9uKDEpLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc2NTgzMDg3OH19fV19&Signature=G0mNqtb3cJ6NlxHHDZnYw5XL7Dtjau38BdF6HCESFc-dBrYhAucIU2EiQ~b3AbgdXo-yDVKS-Hj-RupVm-8kmAGkjWHbckXfeqY5VQjhyoVFmlc2Q0CiEufNkbtHXqQZqaLckRBhDTJNpM-OUh0K86kwzXC1xgQF8~oEZmZ1bY1i7Jcq7~86WU0kopbZCLZASnb5f4JEG9e3w4XetjO7PGd5~uqORpY8LYiVdEn4FF-e5zDcqvtHwOQ~pFGyM8a68olaTA6yxPnqX0Ho4frL2gSj3klouG4WnhzHTYtk2ZGx6X1N0iAnjOp8H8fncaaKDcxOyjjtFGzvgaxSongcUw__&Key-Pair-Id=K2TK3EG287XSFC)
A success message should be displayed upon completion.

Step 6. Generate Mapping Code for Data Synchronization Scenarios
This step generates Overcast object mapping code for the selected data synchronization scenarios. If there are modifications to the generated mapping code, create a Change Set and add the apex classes that have been modified. All custom code should be migrated using Salesforce Change Sets.
This step only needs to be performed once for each scenario.
Your existing selection from the scenario migration should still be selected. In the target organization, wait for all of the scenarios to complete the activation operations. Then, click Migrate mapping code.
Real-time scenarios do not need to be de-selected; they will be skipped.

A success message should be displayed upon completion.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy83NDg4LzMyMTM5L2NrZmluZGVyL2ltYWdlcy9TdWNjZXNzTWVzc2FnZSgxKS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NjU4MzA4Nzl9fX1dfQ__&Signature=O1QWU9-6gOegNBDCEZRtXj5uO1uCv6IJxLAWVAlHuQAgeRtoyq94AoQKj361pwdiWwOjbVCa5USZPFjzZCfUieEYX8wUfH6utPERIELV6xSh5aemUE~z1rNrzZ4svfLnYoHqPIrVB6SV2~aErq91TVtoW3BDeCccih4g2kirMCWcnDB5AA6zJ8BKfxNgnt895g~y1lGxO5-CY5qTox2DApO8I8P6k8afpjNdcVJZGQ~5vAGNTx0tZtBPl-yb6vOXljeaH1sxaaNpuKPiX9Gm5Br5MBGWF8LYwu7jTecw95XvzE~YxItoHskX-uQnsWzalLHqOisTZE3uYiqzmnZKKQ__&Key-Pair-Id=K2TK3EG287XSFC)
Migrating mapping code may fail if not all of the scenarios completed the activation operation successfully in the target organization.
The migration is now complete. Test the scenarios in the target organization.
Troubleshooting
Failed to log in. Are you missing your security token? [HttpError=400:Bad Request Error=invalid_grant Message=authentication failure]
This can be a general error message. Check the login history of the user in the target org for more details.
Cause
The login history log reports "Username-Password Flow Disabled". Overcast Scenario Migration supports login using the Username-Password login flow.
Solution
Enable the Username-Password OAuth flow on the target org. OAuth and OpenID Connect Settings -> Allow OAuth Username-Password Flows.