function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Migration from one production(Ex: X company) to another production(Ex: Y company)

Hi All,

This is really interesting thing i am into now.

I have one production environment related to X company and another production environment related to Y company. Now my requirement is to migrate the meta - data(like fields, objects, triggers, visualforce pages .... etc) and data(like records for each object) from one production environment into another production environment.
So now the question is:
What are the best ways we can do the migration.
Do we need to follow any order.
What are all precautions we can do in this type of projects.

Thanks in Advance,
Srinath R 9Srinath R 9
The order obviously would be to  deloy the metadata components before moving data.
For metadata deployment use ANT Migration tool.
For data migration use data loader export and import.

But why this requirement? Is this for your developer Org? Usually clients do not maintain 2 production instances.
Himanshu ParasharHimanshu Parashar

If you want to migrate from one Production to anohter Production env.

you need to follow below process.

1. Move object and fields first.
2. Move Apex Component such as visual force page, Trigger.
3. Move data using data loader.
4. if you have Master detail relationship between objects then you need to first insert Master object data, export all the records from new org, update child records data with new master object id and then insert child items.