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
venkat davuluri 31venkat davuluri 31 

schedule apex to update related records based on the Parent object

Hi All, 

I am trying to design a schedule class which updates the lookup fields on the custom object based on the look up fields selected in Account.

This custom object is related to Account?.

I am stuck if I have to choose a for loop or a soql query nested inside the execute method or the schedule class?

Please give me some ideas.

Thank you
Abhi