You need to sign in to do that
Don't have an account?

Help on Batch Apex
hi,
i have understand the batch apex and i had write the code for batch apex also, the problem is i'm not how to execute the batch apex
and how to execute the start(),execute() and finish() method in batchapex class
please help me to execute the batch apex
Thanks
Mohammad SaleemBaba
Hello,
If you have already written the batch apex then it will execute as per your requirement adn there are two ways to do so.
1) call the batch apex class from the class.
2)For automatic running of batch class make the batch apex class schedulable
To execute batch apex class Instantiate your class then call execute method of the batch class.
To see example go to this :
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm