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
Aditya RautAditya Raut 

Can we call asynchronous apex from Execute method of batch class?

Shiraz HodaShiraz Hoda
Hi Aditya,

Yes you can. A Queueable can call another Queueable, a Batchable can call another Batchable in the finish method, and Scheduleable methods can call Batchable and Queueable methods. 

If this helps, Please mark it as best answer.

Thanks!
Aditya RautAditya Raut
Hi Shiraz,

I want to know whether we can call asynchronous apex from execute() method of Batch class?
Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

We can call a queueble apex from execute method of the batch class.

Please find the below question for similar solution (https://salesforce.stackexchange.com/questions/206814/solution-on-calling-queueable-from-batch-causing-exception-of-system-limitexcep)

We can call another batch class from batch in Finish method only.

Please find the below article (https://www.emizentech.com/blog/call-batch-apex-from-another-batch-apex.html) for calling batch from another batch.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,