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
Murali KrishnaMurali Krishna 

regarding batch apex

can we call batch apex from another batch apex

Best Answer chosen by Admin (Salesforce Developers) 
Bhawani SharmaBhawani Sharma
There are 2 way for these:
From the finish method of first batch, call a scheduler class which will schedule second bach. From the first batch set the CRON expression, set the scheduler to be executed after 1 minute.
2. Write a email service and send email from finish method from first batch on this. (Not a good approach)

All Answers

Bhawani SharmaBhawani Sharma
There are 2 way for these:
From the finish method of first batch, call a scheduler class which will schedule second bach. From the first batch set the CRON expression, set the scheduler to be executed after 1 minute.
2. Write a email service and send email from finish method from first batch on this. (Not a good approach)
This was selected as the best answer
sushant sussushant sus
perfect answer ..sir...