I have a requirement to move data from one organization to another (without using data import wizard). For this, I can create either a SSIS package or console app to retrieve record from source organization and then create to target organization.
The question I have is about to the logic I need to build for creating the Account/Contact record as they are related to each other. For example, Account1 record can be associated to Contact1 and similarly Contact 2 can be associated to Account2 . So if I create all the account record first then I won't be having associated contact record in the system and as a result the account creation will fail. Similarly for contact.
Need some suggestion to effectively achieve this.