You need to sign in to do that
Don't have an account?
![Saniya Khan 2 Saniya Khan 2](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
how to pass wrapper class in batch class
I have wrapper class which I want to pass to batch class as want to send 1000's of email and also want to update records
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
you can create a list of your custom wrapper class in the execute method,
List<AccountCustomIterator.AccountWrapper> accWrapper = (List<AccountCustomIterator.AccountWrapper>)scope;
You then want to use the created wrapper list in the finish method of Batch Apex.
Please refer
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm
https://salesforce.stackexchange.com/questions/196416/how-to-use-wrapper-class-in-batch-iterator-using-custom-iterator
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm