I've written an apex class and trigger that pulls data from a child record and displays the information in a text field in a certain manner.
From hence on forth, anytime the code is triggered, it will update the parent record correctly.
What are the different ways in which to ensure the old records are also displaying this new information correctly?
Here are some options that I have come across when doing this research:
- Data Loader - Manually uploading the corrected format
- Batch Apex Class - pushing this to production and calling it in anonymous apex. Q: Do you keep this class in production or subsequently delete it since you're only ever using it once?
- Running the code in Anonymous Apex. I'm assuming this is the least popular option.
Final question: Are options number 2 and 3 what people mean when they say they'll run a script in Salesforce or is there another option(s) that I've not mentioned above?