You need to sign in to do that
Don't have an account?
phanip admin
I have a batch class that batch class should not run Saturdays and Sundays and consider as public holidays(like Diwali) how to achieve this ? Pls give me the solution ?
Hi Every One
Pls help Me the question
I have a batch class that batch class should not run Saturdays and Sundays and consider as public holidays(like Diwali) how to achieve this ?
Pls give me the solution ?
Pls help Me the question
I have a batch class that batch class should not run Saturdays and Sundays and consider as public holidays(like Diwali) how to achieve this ?
Pls give me the solution ?
In any case, my approach would be to schedule the batch from Monday to Friday (which excludes all weekends by default) and on the start method, check if the running date is a Holiday or not. If it is, return empty list; if its not, proceed as normal.
Marking best answers is good for all people.
All Answers
In any case, my approach would be to schedule the batch from Monday to Friday (which excludes all weekends by default) and on the start method, check if the running date is a Holiday or not. If it is, return empty list; if its not, proceed as normal.
Marking best answers is good for all people.
First of all thank you very much
if you possible provide the code of batch apex with scheduling code also..