Programmatic creation of a new Batch
If during an export script I check my database and find that a record already exists I will not want to save it. I will instead want to write that document (PDF) to a different Batch job called DocumentExceptionBatch. How do I create the Batch programmatically and move documents into it?
Any assistance is appreciated.