You need to sign in to do that
Don't have an account?
Manish Verma 4
Batch apex
Hello friends,
My requirement is: for all the Contacts, update status equal active in batch apex. Schedule this to run at 9 pm daily.
need help.
Thank you
My requirement is: for all the Contacts, update status equal active in batch apex. Schedule this to run at 9 pm daily.
need help.
Thank you
Batch Apex class
This below batch class will get the all the contact records where the status is not equal active and then in the execute method, it will update the status field into Active. Schedulable Apex class
Then create Schedulable apex class to run the batch class in the scheduled interval of time. This class will call the above batch class to update the contact record Then you can schedule this class to run daily at 9pm. Follow the below steps
To know more details about batch class check this link - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch.htm
Thanks,
Karanraj (http://www.karanrajs.com)
Thanks for considering my requirement.
But i am getting an error in batch apex class :
Error: Compile Error: updateContactRecord: Class must implement the global interface method: Iterable<Contact> start(Database.BatchableContext) from Database.Batchable<Contact> at line 1 column 14
how can i resolve this?