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
sanjdevsanjdev 

Help Required to run batch apex for past dates Urgent.

Hi All,

 

We have a scheduler that runs everyday and upsert some records into custom objects. Today we found that our scheduler doesnot runs for last 5 days and so there are some issue with report.

 

Can anyone let me know how to execute the batch apex/scheduler for past days, so that it will run for past days and upsert the records as expected.

 

 

Regards

Sanj

JitendraJitendra

Hi Sanj,

Definitely you have written some logic hoping that it will run everyday. Cant you just change logic to run for last five day and run only once. After that restore your old logic ; is there any hurdle in doing that ?