Development questions

Write a SOQL query on CronTrigger and CronJobDetail to find all currently scheduled Apex jobs and their next fire time.

DevelopmentMediumInfosysWiproLTIMindtree

Scheduled jobs live in CronTrigger, with the job name in the related CronJobDetail.

soql
SELECT Id, CronJobDetail.Name, CronJobDetail.JobType, State, NextFireTime, PreviousFireTime, CronExpression
FROM CronTrigger
WHERE State IN ('WAITING', 'ACQUIRED', 'EXECUTING')
ORDER BY NextFireTime

Scheduled Apex jobs have CronJobDetail.JobType = '7'.

soqlscenarioscheduled-apexmonitoring