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
theisglogantheisglogan 

edit/save scheduler on one Object

Need help creating a edit/save scheduler every night at midnight. Just need to have it edit/save a Policy__C to scan for changes and/or run workflows. 
VinayVinay (Salesforce Developers) 
Hi John,

You can schedule batch apex to update field.

Please find below details.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm
https://help.salesforce.com/articleView?id=code_schedule_batch_apex.htm&type=5

Sample example.

https://sfdcadda.blogspot.com/2017/08/batch-apex-in-salesforce-how-to.html

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar