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
N@niN@ni 

How can i execute two Batch Apex class one by one???????????

Two Batch Apex Classes A and B,  after compleate A execution, B should be start automatically, How we can achive this...?

 

Best Answer chosen by Admin (Salesforce Developers) 
vbsvbs
Nani - You can use Batch Apex chaining by executing class B using Database.executeBatch in the finish method of class A. This is possible for code written after release 26. HTH