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
Rajath Kundapur 17Rajath Kundapur 17 

How to check, when batch has been scheduled

I have a list of batch scheduled, I need to know at what time the batch is getting executed.
AnudeepAnudeep (Salesforce Developers) 
Hi Rajath, 

After the Apex job has been scheduled, you can obtain more information about it by running a SOQL query on CronTrigger

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm

You can use StartTime field in CronTrigger object (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_crontrigger.htm)

Anudeep