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
Akash DeokarAkash Deokar 

can we call future method from batch apex

can we call future method from batch apex?
Please explain in brief what needs to known to execute it.
 
Ajay K DubediAjay K Dubedi
Hi Akash,

No, We cannot call future methods directly from batch apex but we can call a  web service from batch class and that web service can call the @future method. Also, we can call the future method from the finish method in the batch class.

Please go to the below link for a detailed description of above two workarounds:
https://www.pebibits.com/future-method-asynchronous-apex/

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com