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
tulasiram chtulasiram ch 

We have Account, Contact, Opportunity, Opportunity_Item__c records which order we will follow to upload records into the salesforce org

Best Answer chosen by tulasiram ch
Ahmad J. KoubeissyAhmad J. Koubeissy
you should upload them object after another, because the account should exist to be able to relate the contact to it. same for opportunity.
 

All Answers

Ahmad J. KoubeissyAhmad J. Koubeissy
you should start with the accounts, then you can upload either the contacts or opportunity and finally the opportunity item.

Please mark as best answer if this answer your question
tulasiram chtulasiram ch
Ok , can we upload one object after another object. Is there any chance to upload Related objects at one shot. 
Ahmad J. KoubeissyAhmad J. Koubeissy
you should upload them object after another, because the account should exist to be able to relate the contact to it. same for opportunity.
 
This was selected as the best answer
Amit Chaudhary 8Amit Chaudhary 8
Hi tulasiram ch,

Always try to insert the parent record first then child. So  in your case order should be like below
1) Account
2) Contact
3) Opportunity
4) Opportunity Item

Please check below post for more information
1) Steps to migrate data from one organization to another (https://help.salesforce.com/articleView?id=What-steps-are-needed-to-migrate-my-data-from-one-organization-to-another-1327109132359&language=en_US&type=1)
2) https://admin.salesforce.com/data-migration
3) Force.com Migration Tool Guide (https://resources.docs.salesforce.com/sfdc/pdf/salesforce_migration_guide.pdf)

Let us know if this will help you