July 21, 2015

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:


Cheers!!!

No comments:

Post a Comment