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
zeezackisbackzeezackisback 

Export of one org, to another org. How to map id's?!

We have two org's and I need to figure out a way to export data from one, to the other. Problem is unique id's. The data to go on the new org will be given a new id, but I need to get it mapped to the other org.

 

Is it possible for apex code to pick up a new case on org 2 and relate it to accounts, contacts, etc... from org 1

 

 

snugglessnuggles

hi zeezack,

 

you have a few options depending on what exactly you are trying to do.  You could always import the old case number into the new org as a custom external id field to have a backward link.  You could then potentially use the Web Services API to push data back and forth.  There is also a product called "salesforce to salesforce" that allows you to "link" orgs and share records, but this will actually create duplicate parallel records in the two orgs.  If you are trying to do a simple mapping of some other data, you can use the success file from the import into the second org (which will contain all the new record ids) to create a sort of key that pairs old id and new id.  it really depends on what you are trying to do.  There isn't going to be a way to create an actual lookup relationship that points to an actual record in another org.