One cannot execute a batch from a future annotated method. It is also impossible to have a trigger reacting to changes in future calling a batch.

I cannot find if it is possible to execute a schedule from a future method (or a System.scheduleBatch) which will then in turn execute a batch, similar to a older trick of calling a schedule from a batch finish to link batches.

  • Very interesting. What are you really trying to do? – bigassforce Feb 11 '14 at 16:55

Yes, we do that. Dan Appleman did a dreamforce session about exactly that. See here for more

We chain batch, which schedules a job to restart that batch. It runs round the clock, and is one of my favorite things I've ever built.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.