Roll ups and governor limit of 100 #1140
Unanswered
coopermorrison
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We have reached the governor limit of 100 scheduled jobs within our salesforce org. Most of these are from rollups to summarised various business data.
Salesforce support has recommended implementing a schedulable class and that class would invoke two batch jobs one after the other one. Is there a way to invoke the DLRS batch jobs through this, I would e.g. run all Account related roll-ups in one schedulable class.
Currently stumped - any advice or suggestions would be greatly appreciated.
`//declaration of scheduler class
global class ScheduleMultipleBatchJobs implements schedulable {
//method to implement Apex schedulers
global void execute(SchedulableContext ct)
{
BatchDeletion BD = new BatchDeletion();
Database.executebatch(BD);
UpdateAccountFields UP = new UpdateAccountFields();
Database.executebatch(UP);
}
}`
Beta Was this translation helpful? Give feedback.
All reactions