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
neblincneblinc 

Pre populating custom object with data

I created a new custom object related to 'Opportunity'. Now, I have triggers for insert, delete and update on Opportunity. Data is added into the custom object based on these triggers. My salesforce already has 100s of Opportunities, how do I populate my custom object with data from Opportunity  ( without manually having to edit each Opportunity - which is not the step I'm taking ).

 

Is there a process in salesforce/apex to run a one-time data load.

 

 

Thanks,
Chandra. 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
neblincneblinc
Is writing an apex batch job a solution ?

All Answers

neblincneblinc
Is writing an apex batch job a solution ?
This was selected as the best answer
ErikssonEriksson
I think you can execute your script in system log if you just want to run your apex one-time.