+ Start a Discussion

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) 
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