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
Developer_shaanDeveloper_shaan 

Batch Apex Method.

Hi ,

 

I went through the developers code and some of the examples for Batch Apex.

Here i got the Info about the three methods: start , execute and finish and their uses.

 

I have a query regarding batch apex methods,

 

-In start method i can retrieve  data using SOQL.

-In Execute method data operations are done.

-And in Finish process like sending emails are done.

 

1.Can any one let me know how the operations are carried in execute method. I mean to say if we have to update a batch of records how can we do it using batch apex.

 

2. Do we need to pass the parameters from another apex script for the methods within batch apex class to be executed.

 

 

Please let me know if any solution.

 

Thanks in advance.

Anand@SAASAnand@SAAS

Please read the documentation here. There is an example of how to retrieve records, update records and how to use them in the start/execute/finish methods.