2

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.

1
  • Very interesting. What are you really trying to do? Feb 11, 2014 at 16:55

1 Answer 1

2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .