An effort to bring a revolution in Salesforce.

Tuesday, 21 July 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

No comments:

Post a Comment

Get Gmail, Docs, Drive, and Calendar for business