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

batch class to fetch the records based on time
Hi All,
Please provide any sample code of Batch class to fetch the records based on time and date.
Thanks,
Sarma
Please provide any sample code of Batch class to fetch the records based on time and date.
Thanks,
Sarma
May I suggest you please refer to below link from the stack exchange community with a similar discussion which might help you further.
- https://salesforce.stackexchange.com/questions/187932/date-in-batch-apex-query
- https://developer.salesforce.com/forums/?id=906F00000008yXEIAY
- http://blog.shivanathd.com/2013/01/how-to-write-batch-class-in.html
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
Check out this link https://salesforce.stackexchange.com/questions/187932/date-in-batch-apex-query
I have to run the batch based on the schedule time when the queue is having maximum of 7 records (Fields- Queue Name, Public Group, Start Time, End Time, Day) .
For example
Queue, Public Group, 9:00 am , 9:00 pm, Monday
If the data is like this, then the batch job should move public group everyday
Queue, Public Group, 9:00 am , 9:00 pm, All
If there is no record for a day then the batch process does not need to do anything.