+ Start a Discussion
OpsterOpster 

Packaging an Apex Scheduled Class?

I have an Apex Class that is Schedulable.  What is the proper way to package this class so that when a user installs it into their org it automatically schedules the class to run?

Ankit AroraAnkit Arora

Hi Opster,

 

We can only package the class and to schedule it you have to do that manually on target org.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

ca_peterson_oldca_peterson_old

I added a configuration page to our app that has a one-click button to enable the scheduled jobs we need, but you can also use a visualforce page that's set as the "Splash Page Custom Link" for a tab and have that splah page ensure the jobs are scheduled.

 

Right now there's no automated way to schedule the jobs at the end of the package install process sadly.

OpsterOpster

Good bit of info.... thanks.