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
indranily81indranily81 

Is there any timer facility in Apex ?

Hi,

 

Is there any Timer class in Apex or any mechanism to invoke timer functionality ?

Thanks in advance.

 

David VPDavid VP

Check out scheduled jobs :

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

 

prageethprageeth

Hello 

 

Sometimes <apex:actionPoller/> will solve your problem.

A good example of using <apex:actionPoller/> can be found in Apex component reference document.

indranily81indranily81

Hi,

 

I went through the Schedule Apex part but the example seems a bit tricky. I need to fire a workflow after every1 hour . Can it be done through scheduler ? Will be nice of you if you can share some code piece.

 

Thanks in advance.