Running Batches
To manually run a batch on-demand, select the “Run Batch” action button from the Batch Definition page layout.
A preview of the batch is displayed. Click the “Looks good. Start the batch” button to initiate the batch.
Note: If error messages are displayed during batch preview, check the query to make sure all fields are valid.
Scheduling Batches
Batches can be scheduled to run automatically. For example, scheduling a batch to run every Friday at 5pm.
An Apex utility is provided for scheduling. Use the Developer Console -> Debug -> Open Executable Console.
Enter Apex code: