+ Start a Discussion
ShravanKumarBagamShravanKumarBagam 

How many ways to execute apex scheduling?

crop1645crop1645

Shravan:

 

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)