Activity Forums Salesforce® Discussions What is the sequence of migrating data from one Salesforce org to another?

  • What is the sequence of migrating data from one Salesforce org to another?

  • Anjali

    Member
    July 10, 2018 at 2:05 pm

    If we want to transfer all data from one Salesforce org to another Salesforce org then what is the sequence of data import? What object's data should import first?

  • Anurag algoworks

    Member
    September 4, 2018 at 1:52 pm

    Hi Anjali,

    • First we need to make sure that you have Ant migration tool in your system.We will need it to provide the details of the credentials and the type of metadata you want to migrate.
    • We also need to have Java and Apache Ant installed on your system.
    • Second step is to load the credentials of both the salesforce org in the file called 'build.properties'.
    • The credentials that we provide is what it passes to the file 'build.xml' .When the data is being migrated, the build.xml file is what is used.
    • Then we provide the details of the metadata that we want to migrate to the org.It could be anything such as apex classes, custom and standard objects, custom fields, aura bundles etc. We provide these details in the file 'package.xml'.
    • After providing all the details, we first retrieve the data from the salesforce org using the command 'ant retrieveUnpackaged' and followed by 'ant deployUnpackaged' after the retrieving has been successfully done.
    • Before doing these we must make sure that the path has been set up to the directory of the 'unpackaged' folder.

     

  • Parul

    Member
    September 24, 2018 at 12:11 am

    Your question is too broad.
    You should import first parent records and then import the child records.
    Like this sequence:

    User
    Account
    Contact
    Case
    Task
    Event
    Also, rather than migrating all the data from one sandbox to other, you can think of refreshing a sandbox from the sandbox itself as long as sandbox types are same.

  • Michael Tomar

    Member
    October 22, 2021 at 8:48 am

    Well, your steps should be the following:
    1. Backup. Always take a backup before performing any form of data migration
    2. Sort your data before migrating
    3. Create your data migration plan
    4. Create a data migration workbook
    5. Create a communications schedule
    6. Documentation is vital to a successful Salesforce data migration. Be sure to document each and every step before, during, and after the migration
    You can learn more in this blog post on Salesforce Data Migration: https://skyvia.com/blog/salesforce-data-migration-best-practices

    • This reply was modified 1 month, 2 weeks ago by  Michael Tomar.
Viewing 1 - 4 of 4 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos