How to get Cron Job name from CronTrigger object in Salesforce?

How to get Cron Job name from CronTrigger object in Salesforce?

CronJobDetail.Name gives the Job name from CronTrigger object in Salesforce. Check the below Query for example.Sample Query:

SELECT ID, CronExpression, CronJobDetail.Name, CronJobDetailId, EndTime, NextFireTime, PreviousFireTime, StartTime, State, TimesTriggered FROM CronTrigger

Output:

Leave a Reply