Activity Forums Salesforce® Discussions What is Apex Scheduler in Salesforce?

  • Achintya

    Member
    August 20, 2019 at 5:25 am

    The Apex Scheduler lets you delay execution so that you can run Apex classes at a specified time. This is ideal for daily or weekly maintenance tasks using Batch Apex. To take advantage of the scheduler, write an Apex class that implements the Schedulable interface, and then schedule it for execution on a specific schedule. To invoke Apex classes to run at specific times, first implement the Schedulable interface for the class, then specify the schedule using either the Schedule Apex page in the Salesforce user interface, or the System.schedule method.

  • Hariom Chaudhary

    Member
    August 20, 2019 at 10:38 am

    Hi,

    When you want to run a piece apex code at some particular time within a period of time.Schedule apex is class which runs at a regular interval of time. To schedule an apex class we need to implement an interface Schedulable. If you want to run a piece to schedule code at the first of every month or day wise  you can use to make your life easier when you have to redeploy/change this code Scheduler apex runs as system mode that means whether the user has permission to execute the class or not, they can execute  the class.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos