Activity Forums Salesforce® Discussions What is CroneTrigger in Salesforce?

  • Shweta

    Member
    February 28, 2020 at 12:27 pm

    CornTrigger: It is an object in salesforce which contains schedule information for a scheduled job. It holds the CronExpression, NextFireTime, LastFireTime, StartTime, End Time, status, etc. It is used to query scheduled jobs in your organization.

    Example:-
    
    List<CronTrigger> jobs = [Select Id, State, NextFireTime From CronTrigger];
    for(CronTrigger job : jobs)
    {
    System.debug(job);
    }

     

    .

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos