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
Adam BinderAdam Binder 

Help with Batch Apex to update all records?

Hi All,

I'm new to Apex, so I need some help.

I need to build an Apex Batch on a custom object to update all records (so that it runs workflows) where the invoice date is within the last 760 days. I also need this to run on a schedule nightly.

My object is Orders_and_Invoices__c and my invoice date is Invoice_Date__c

Can anyone help?