+ Start a Discussion
abhishek satputeabhishek satpute 

i have one doubt ->>how to call future method from batch

AbhishekAbhishek (Salesforce Developers) 
Salesforce doesn't allow a future method to be called from another future method or a batch job. Before calling your future method, you should check if a future or batch job is already running. This would be a best practice for any code you ever write that calls a future method. The good news is that it's very easy. Example below: 

if(System.IsBatch() == false && System.isFuture() == false){ 
    // make your future call here 

For further suggestions check this too,




Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.