You need to sign in to do that
Don't have an account?

How to write a batch apex class?
Description:
How to write batch apex class to fetch email id from contact for thant i want to send one e mail templates?
I want to schedule this batch apex at every day at 11 15
guys pls help me
How to write batch apex class to fetch email id from contact for thant i want to send one e mail templates?
I want to schedule this batch apex at every day at 11 15
guys pls help me
Hi Rameshder,
Here you go:
In reference to your thread : https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XbHUQA0&feedtype=SINGLE_QUESTION_DETAIL&dc=Apex_Code_Development&criteria=OPENQUESTIONS&
Batch Class :
Now to Schedule you batch job, please follow the steps below:
Create a new Apex Class with the following code :
Apex Scheduler class :
Now go to Developer Console and in Anonymous window(once in Developer console Press Ctrl + E) execute the following code:
Now to check when your batch job is scheduled to run. Type 'Scheduled Jobs' in Quick Find Box and click on 'Scheduled Job' under Monitor section.You will be able to see when you batch job is scheduled.
Please mark this question as solved, if this helps you.
Thanks,
Apoorv
All Answers
Hi Rameshder,
Here you go:
In reference to your thread : https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XbHUQA0&feedtype=SINGLE_QUESTION_DETAIL&dc=Apex_Code_Development&criteria=OPENQUESTIONS&
Batch Class :
Now to Schedule you batch job, please follow the steps below:
Create a new Apex Class with the following code :
Apex Scheduler class :
Now go to Developer Console and in Anonymous window(once in Developer console Press Ctrl + E) execute the following code:
Now to check when your batch job is scheduled to run. Type 'Scheduled Jobs' in Quick Find Box and click on 'Scheduled Job' under Monitor section.You will be able to see when you batch job is scheduled.
Please mark this question as solved, if this helps you.
Thanks,
Apoorv
Apporva
Please send me test class