You need to sign in to do that
Don't have an account?
minnuchcloud@gmail.com
field update using batch apex
i had 2000000 records
contains field name city
and state ,state is same for all records
city=1
city=2
city=3
city=4
city=5
city=6
city=7
city=8
and
state =AP
so i want field update for state 'field'
for contain city names
city=1
city=2
city=3
city=4
state =TN
how to write batch class for this and execution method
pl send me
Hi,
Use this link for batch apex class.
http://corycowgill.blogspot.in/2010/12/leveraging-scheduled-apex-to-link-batch.html
Thanks,
Lakshmi
Lakshmi please note now the second batch can be called in finish method of first batch .Thanks
Here are few good resources on how to write batches in sfdc
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm
http://salesforcesource.blogspot.in/2010/02/utilizing-power-of-batch-apex-and-async.html
http://www.forcelabs.net/2011/10/how-to-use-batch-apex-in-salesforce.html
http://salesforcetrekbin.blogspot.in/2010/04/how-to-use-batch-apex-in-salesforce.html
Hope this will help to come up with your first batch.Thanks
my question is
i had 200000 records
all records had in state__c field 'AP'
and in city__c field had 12 district like
HYD
NAL
NIZ
VAR
KAM
GUN
VIJ
VIZ
PRA
NEL
CHI
KAD
NOW
I WANT FIELD UPDATE FOR ONLY 5 CITIES state__C 'TEL'
LIKE
HYD
var
kam
nal
niz
i want chaing the state name for only 5 cities may be 60000 records like tha
so pl send me batch apes class
and developerconsole query also
i want chainge the state__c field contain name is 'AP''
it updates in to 'TN'