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. Good news is that it's very easy. Example below:
if(System.IsBatch() == false && System.isFuture() == false){ // make your future call here }
Hope it Helps you. Mark this answer Solved if it resolves your query.
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. Good news is that it's very easy. Example below:
if(System.IsBatch() == false && System.isFuture() == false){
// make your future call here
}
Hope it Helps you. Mark this answer Solved if it resolves your query.
Regards ,
Suraj
For more information on future method visit,
https://www.sfdc-lightning.com/2018/10/future-methods-in-salesforce.html