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
Vikash Kumar 308Vikash Kumar 308 

How to migrate 100 child to different parent in salesforce?

VinayVinay (Salesforce Developers) 
Hi Vikash,

You can use dataloader to migrate child and parent record in salesforce.

Check below references.
https://lenguyensf.blog/2020/07/03/strategy-for-migrating-child-records-using-data-loader/
https://www.apexhours.com/salesforce-data-loader/

Please mark as Best Answer if above information was helpful.

Thanks,
Arun Kumar 1141Arun Kumar 1141

Hi Vikash,

You can use Workbench or Dataloader to migrate child and parent records in Salesforce.
If you're attempting to move data from one organization to another, please follow these steps.
1) Create a single external ID for each item and keep the previous ID (or any other special key) on hand.
2) Next, insert the parent object's contents using an external ID.
3) After that, map the parent record by parent external ID while simultaneously inserting the child object data by external id.

You can check with this video: Create parent child relationship using External Id and Upsert Operation in Salesforce Dataloader (https://youtu.be/88xb62VwQaU)

If the information above was useful, kindly indicate it as the best response.

Thanks