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
kladizkovkladizkov 

Creating a schedule to call an apex function

Hi,

 

I'm looking for a way to call an apex function every day at a particular time ( just like cronjob in linue ). Is this possible in salesforce?

 

Best Answer chosen by Admin (Salesforce Developers) 
jeffdonthemic2jeffdonthemic2

The upcoming Winter '10 release will include this feature. See "Code Scheduler" on this page.

 

Jeff Douglas
Appirio, Inc.
http://blog.jeffdouglas.com 

All Answers

jeffdonthemic2jeffdonthemic2

The upcoming Winter '10 release will include this feature. See "Code Scheduler" on this page.

 

Jeff Douglas
Appirio, Inc.
http://blog.jeffdouglas.com 

This was selected as the best answer
chikpeachikpea

You can simulate using Workflow and Trigger combination.

 

Bhaskar

http://salesforce.chikpea.com

indy_sfdcindy_sfdc

APEX Scheduler and other features can be enabled by request, take a look at this article with more details on enabling additional Salesforce features.

 

http://wiki.developerforce.com/index.php/CRC:How_to_Enable_Additional_Salesforce_Features
MyGodItsColdMyGodItsCold

We have been using the trigger + time based workflow solution to simulate CRON type job scheduling.

 

However, when we applied the update that's scheduled to go in on Dec 1st, IT CRASHED.

 

We're in the Apex Scheduler pilot with a better solution & just finishing up w/ our deployment.

 

Do you have trigger + time based workflow processes in place, and do they survive the update?

chikpeachikpea

Can any Org request for this feature? We got a message from SFDC that, Org should have 5000+ lic. for Scheduler.

 

Thanks

Bhaskar

jeffdonthemic2jeffdonthemic2

You might want to take a look at this short term solution until Apex Scheduler is GA.

Jeff Douglas
Appirio, Inc.
http://blog.jeffdouglas.com