I need to create a summaries record for each result generated by the following query, which returns around 12K.
I having a little issue to understand the concept of passing params via batches.
I’m clutching at straws here a little, but has anyone ever come across a situation where a Batch Apex routine creates duplicate records, possibly as a result of the
execute method running more than once for the same batch of records?
I have a batch class, I need to email and run another batch in the ‘Finish’ method of batch ONLY IF the batch ran successfully. I would like to have batch status in the finish method (like the batch status as we see in the apex jobs), so that I could check for it and if it was completed then finish() should perform necessary tasks.
finish() method of an Apex Batch class called when a user aborts the batch during startup or processing? Is there a way to find out who aborted it?
Trying to implement Dan Appleman solution to call batch job from finish method of another batch job. Bu the execute method is continously looping. Can someone suggest me on ways to improve my batch class to achieve what Dan got explained in his solution (calling a method in the finish of batch job which again calls the same batch job when there are still records pending). Thanks