You need to sign in to do that
Don't have an account?
marcob
call Database.executeBatch from @future method allowed?
Hi,
although i've studied the documentation, i can't find the answer to my question: is it allowed to call a batch class from an @future method? Maybe i can't find it because it is simply allowed, but need to be sure, for my entire design is depending on it.
Hope for some respons!
Br, Marco
No you cant call a Batch Class from a future method. Here's the link to support the answer:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm
All Answers
The answer to your question is No. If you try to call a batch class from an @future method you get this error.
System.AsyncException: Database.executeBatch cannot be called from a batch or future method.
No you cant call a Batch Class from a future method. Here's the link to support the answer:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm
Clear answers, thanks!
Hi Shailesh Deshpande
There is any alternative to call batch class in future class