function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How many ways to execute apex scheduling?




Ultimately, you need to execute the APEX method System.schedule.  This can be done:


a) Via a VF controller (such as from a button click)

b) Via a trigger - although extreme care must be taken here as you can only have 25 scheduled jobs active at one time

c) Via anonymous Apex executed in the Development Console 

d) Via the Schedule APEX UI page in Setup


Case d) works well if your schedule is one supported by the UI; otherwise, I recommend either a) or c)