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.

  • [adinserter block='9']
  • 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

How Salesforce Boosted the Reach of MrBeast’s $1M Puzzle

Blog in

Salesforce partnered with YouTuber MrBeast for a groundbreaking Super Bowl campaign that turned a traditional ad into an interactive $1 million puzzle hunt, massively amplifying…

Popular Salesforce Videos