Activity › Forums › Salesforce® Discussions › What is Apex Scheduler in Salesforce?
Tagged: Apex Class, Apex Scheduler, Batch Apex, Salesforce Apex, Salesforce Apex Scheduler, Schedulable Interface, Schedule Apex Page
-
What is Apex Scheduler in Salesforce?
Posted by Laveena on August 20, 2019 at 5:06 AMWhat is Apex Scheduler in Salesforce?
Hariom Chaudhary replied 6 years, 8 months ago 3 Members · 2 Replies -
2 Replies
-
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.
- [adinserter block='9']
-
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.