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
Santhosh Kon 5Santhosh Kon 5 

Hi community i am new to sales force,had an interview question is that can we call future method by finish method in batch Apex class?please help me .

Best Answer chosen by Santhosh Kon 5
Chandrashekhar GoudChandrashekhar Goud
Hi Santhosh

if it helps you, you can close the qustion by choosing best answer.

All Answers

Chandrashekhar GoudChandrashekhar Goud
Hi

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 finish method in the batch class.
Santhosh Kon 5Santhosh Kon 5
Thanks bro for your kind reply
Chandrashekhar GoudChandrashekhar Goud
Hi Santhosh

if it helps you, you can close the qustion by choosing best answer.
This was selected as the best answer