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
mdinatalemdinatale 

Best way to Migrate data from one object to another

I have a object that i need to migrate the data to a new object, then remove the old object. Im not worried about removing the old object thats the easy part. Whats the best way to get all the data from object A to object B they have different structures. Do i wright a class and execute it some how, or do i use the data loader? Whats the best way to do this, Thanks in advance

VPrakashVPrakash

If this is one time load, I will recommend to use Data Loader.

mdinatalemdinatale

I need to do some logic though one record in the old object could be 10 records in the new. There could be 50,000 records, i was worried it would time out if i did it in a class. Could i do it in a php script?