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
Ashok0572Ashok0572 

help me in writing batch class

there is channelpartnercertification recordtype on certification object,
1.    Check the active 'Channel Partner Certification' against an Account. (Active is indicated in Green(static resource is used to appear) on certification object based on start date/end date)
2.    If 'Active Flag' for 'Channel Partner Certification' is available, then the field 'SPP Level Achieved' field on Account will be 'Select Expert'.
3.    Out of active certifications, if 'Start Date' is future Date then the system will check the nearest start date of the certificate to change the               field 'SPP Level Achieved' on Account will be 'Select Expert'. .
4.    Based on future 'Start Date', it will run the update process to change the Status of field 'SPP Level Achieved' on Account Object as 'Select           Expert' on that particular start date.
5.    If no active 'Channel Partner Certification' is found against the Account, it will change field 'SPP Level Achieved' on Account Object as 'No             Level'.
6.    The system will also check the 'Expiry Date' of  'Channel Partner Certification' and accordingly run update process to change the Status of               field 'SPP Level Achieved' on Account Object as 'No Level'  on particular start date.
ManojjenaManojjena
Hi Anji ,
Please go throgh the below link you wll get some idea about Batch apex .Then try to write batch class still you are facing any issue let me know .
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000B2VbIAK