You need to sign in to do that
Don't have an account?
Alejandro Rosano
Schedule a batch at certain hours
Hello all,
I made a schedulable batch that I want to run at certain hours, let's say 6, 12 and 18. I'm writting those hours in a custom setting CS_Schedule__c. How can I call that CS from Apex and get the hours?
Thanks in advance.
I made a schedulable batch that I want to run at certain hours, let's say 6, 12 and 18. I'm writting those hours in a custom setting CS_Schedule__c. How can I call that CS from Apex and get the hours?
Thanks in advance.
The custom setting can be queried as if it were a custom object. Assuming your CS_Schedule__c is a list type with a single field called Hour you can access it like this: