+ Start a Discussion
ZoomzoomZoomzoom 

Starting an Apex job as soon as another job is done

Hello,

 

Is it possible to start an Apex job as soon as another job is completed? It looks like Apex jobs cannot call Database.executeBatch()

 

I'm trying to implement a large precomputing job which is composed of several passes, so it's difficult to add all the passes inside the same Database.Batchable object.

 

Thanks,

Laurent

 

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

It is not possible to call batch from batch class but we have a workaround for it :

 

http://developer.force.com/cookbook/recipe/serialize-batch-apex

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page