You need to sign in to do that
Don't have an account?
Vidya Bhandary
Migrate master data from one org to another
Hi,
I read that I can use Migration tool to move metadata from one org to another.
I want to move some basic master data required for my application.
How can I do this ?
The objects have master-detail and lookup dependencies between them and hence I am not sure of using the data export functions.
Can I use an apex method instead ?
Thank you
I read that I can use Migration tool to move metadata from one org to another.
I want to move some basic master data required for my application.
How can I do this ?
The objects have master-detail and lookup dependencies between them and hence I am not sure of using the data export functions.
Can I use an apex method instead ?
Thank you
Check out this link as well for some more background: https://developer.salesforce.com/page/Data_Loader_and_relationships (https://developer.salesforce.com/page/Data_Loader_and_relationships" target="_blank)
All Answers
1. Metadata - these are objects, fields, workflows, etc
2. Data - data records within objects
Metadata - you can create a unmanaged package in your source org that has all components and move it to the new org, or you can use a tool like Eclipse or Mavensmate to deploy metadata from one org to another.
Data - There are a litany of applications out there to help move org data, but most of the time you're looking at exporting everything and importing one object at a time - pulling the Ids back out and mapping master/child and lookups together in Access/SQL or another means.
How do I then manipulate the child objects since the IDs will be different ? I am thinking writing apex code but is there any other way ?
Step by Step - yes. You would import the master objects - and then dataloader will spit out a success file with the new Ids from the target system in it. You can then either use Excel and VLOOKUP the new Ids in or use some SQL wizardry.
I see the steps like this ...
1. Export all data form Org 1 [ Cannot choose only the subset as far as I can see ]
2. Consider xls files for data I want
3. Import master data ( may be 2 oibjects ) - Org 2
4. Export master data ( to get new IDs ) - Org 2
5. Manipulate the excel or SQL ( have to check how to do this ... not much exp on DB side ) for child objects
6. And then import into Org2 again ?
Sorry if I am being too detailed. I just thought there must be an easier way !! :)
Check out this link as well for some more background: https://developer.salesforce.com/page/Data_Loader_and_relationships (https://developer.salesforce.com/page/Data_Loader_and_relationships" target="_blank)
http://cloudexplorer.ucinnovation.com/
Data Loader was just taking too much time to do for us, with having to download the records in CSV, relate the all parent records correctly between source and target orgs that have different record IDs, and then upload again. Hope people will find it useful like we have.