You need to sign in to do that
Don't have an account?

Schedule Job
I want to execute one Apex funxtion. I have created a class that implements schedulable in execute method I am writing a cron
... execute{
system.schedule( XYZ...)
myclass.function()
}
but when I go and see in setup/schedule jobs there are no jobs, do I need to do it from dveloper cconsol. I dont want to do this as I am creating a managed package so I just want as soon as my package gets installed a hourly job gets scheduled
... execute{
system.schedule( XYZ...)
myclass.function()
}
but when I go and see in setup/schedule jobs there are no jobs, do I need to do it from dveloper cconsol. I dont want to do this as I am creating a managed package so I just want as soon as my package gets installed a hourly job gets scheduled
It should show up under the "Scheduled jobs" in your setup screen. Make sure your list view on the schedule jobs page isn't hiding it. If you still don't see it show up, then perhaps an error happened when you tried to schedule it.
Here are a few links to get you started with InstallHandler classes (Post Install Scripts):
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_install_handler.htm
http://zachelrath.wordpress.com/2012/09/06/migrate-your-post-install-and-uninstall-tasks-to-apex-install-scripts/