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
NasipuriNasipuri 

Time based code execution

Hi,

 

Is there any way to schedule the execution of Apex code?

Suppose I have written some Apex code and I want that the code will be executed automatically at 11PM everyday.

 

Thanks,

Dinesh Nasipuri

Ron HessRon Hess
from the wiki

Apex Code in Blogs

  • Cool Cron Idea - Steve explains how to make a simple cron job using Apex and Workflow, nice work Steve !

TehNrdTehNrd
Very slick idea. I'll be sure to keep this one in my back pocket.
mtbclimbermtbclimber
Make sure you are familiar with the processing of time based workflow and its limitations as you consider this pattern.
mtbclimbermtbclimber
I've created an idea on the ideaexchange in the apex development category for this request. Please promote it if you would like to see it in a future release.

Remember, only promote the ideas you would actually use.