You need to sign in to do that
Don't have an account?
usersfdc21
How to execute batch classes one after the other?
I have got two batch classes written for Integrating from SF to ActiveCampaign and need to execute one after the other.
May I know how to do it?
May I know how to do it?
1. First Batch Class
2. Second batch class.
3. First Scheduler class. This will call 1st Batch class.
4. Second Scheduler class. This will call 2nd Batch class.
I think this will solve your problem.
Thanks
Jai
All Answers
1. First Batch Class
2. Second batch class.
3. First Scheduler class. This will call 1st Batch class.
4. Second Scheduler class. This will call 2nd Batch class.
I think this will solve your problem.
Thanks
Jai
Thank you very much for your quick response and detail explanation.
I am sorry for late reply.
My problem got solved with little modification from your code as below:
global void finish(Database.BatchableContext BC) {
Database.executeBatch(new BatchClassB(constructors),2000);
}