Activity Forums Salesforce® Discussions What is CronTrigger in Salesforce Apex Scheduler? How is it related to getTriggerId?

  • shradha jain

    Member
    July 31, 2018 at 5:42 am

    Hello Madhulika,

    CronTrigger is object that contains schedule information for a scheduled job.The SchedulableContext getTriggerID method returns the ID of the CronTrigger object associated with this scheduled job as a string. You can query CronTrigger to track the progress of the scheduled job.

  • shariq

    Member
    September 17, 2018 at 11:59 pm

    Hi,

    CornTrigger is an object in salesforce which contains schedule information for a scheduled job .Basically it hold the CronExpression,NextFireTime,LastFireTime,StartTime ,End Time ,status etc .

    getTriggerID method returns the ID of the CronTrigger object associated with this scheduled job

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos