Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
Hello Developer Community!

I am tasked with updating my company's whole database so that the contact owners match the Account owners. There are around 5k records to change and it would be taxing to go through an excel sheet and change them and re-load them via dataloader. So, I figured some code could do the trick in the Developer Console via Execute Anonymous Window. Would the code below work?

User-added image

Let me know your thoughts and thank you for your time.

Tony Garand

 
11 answers
  1. Aug 27, 2020, 8:19 PM
    Deepankar Chanda I am attempting to run this and I am experiencing the Apex CPU time limit exceeded would you be able to best assist? I have got some of my contacts to update but not others
Loading
0/9000