27

I am not sure if my memory is failing me, but I was sure there was a way to schedule an Apex Job through the Salesforce UI.

The documentation here only makes mention of using the cron syntax. and here only describes monitoring existing jobs.

Has this feature been removed, or am I missing something really obvious.

  • 2
    I'm pretty sure there was, can't quite remember the navigation path though. Have a feeling it was a button on the Develop > Classes screen? – techtrekker Oct 23 '12 at 0:02
  • 1
    From what I recall, the scheduling UI is significantly more restrictive on when your job runs than leveraging the CRON syntax in the developer console (if you find that you can't get your schedule exactly as you want). – Michael Welburn Oct 23 '12 at 18:20
  • Thanks @MichaelWelburn you're right it is, mandatory end date??? This question was on behalf of a non technical user, who could never have understood the cron syntax :) – Daniel Blackhall Oct 23 '12 at 20:47
34

Setup -> Develop -> Classes

You will see a "Schedule Apex" button. You can set up the timing from there.

Schedule Apex Image

  • 1
    facepalm Thanks Derek, I probably looked everywhere else – Daniel Blackhall Oct 23 '12 at 0:28
6

Just checked - there is a Schedule Apex Button on the Setup > Develop > Classes screen, although I struggled to find a mention of it in the Scheduled Apex doc.

1

Step 1: Implement the Schedulable interface in an Apex class that instantiates the class you want to schedule. Step 2: From Setup, click Develop | Apex Classes and click Schedule Apex.

for more information pls refer: https://help.salesforce.com/HTViewHelpDoc?id=code_schedule_batch_apex.htm&language=en_US

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.