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
Anonymous DeveloperAnonymous Developer 

Need help creating batch class

I have a lookup field to Region on Contact I want the batch to run every midnight. the batch updates the region if the field postcode on contact is changed and the region override is false.


Contact Fields:
Region Override - checkbox
Region(Lookup) 

Custom Object:

Region

Region Fields:

Postcode - text


any idea on how to make it? The output for example is like when a contact is created and the postcode has been filled, the batch will update the region with the postcode overnight.