function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SaleemBaba MohammedSaleemBaba Mohammed 

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

minkeshminkesh

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

Shashikant SharmaShashikant Sharma

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