AutoRABIT Knowledge Base
Ask or search…
K

Schedule Apex Classes Weekly

Using this template, the user can schedule an Apex class that implements the 'Schedulable' interface to be automatically executed on a weekly interval.
To create this template, follow the below steps:
  1. 1.
    Login to your AutoRABIT account.
  2. 2.
    Click on Env. Pro. module.
  3. 3.
    Click on Create New Template.
  4. 4.
    Go to the Create Unsupported Metadata Template tab.
  5. 5.
    Give the template a name and a short description of it.
  6. 6.
    Select the ScheduleApexClassesWeekly checkbox available under Schedule Weekly Apex Class Job.
  7. 7.
    Click Add.
  8. 8.
    On the next screen, you'll notice that a Test Case Name appears by default. Click the Add button to add the custom test data. Fill in the required information in the fields below, then click the Save button.
    1. 1.
      Job Name and Apex Class: give a name to the process in the Job name field; next, enter the Apex Class.
    2. 2.
      Choose the preferred date and time for the process to be executed automatically.
  9. 9.
    Click Save to save the template.
  10. 10.
    Once the template is successfully created, you'll be redirected to the Environment Provisioning History screen.
  11. 11.
    Click the Run button to run the template on your destination org.
  12. 12.
    Select your destination org from the dropdown and enter the email address(es) to receive an email notification whenever the template is run.
  13. 13.
    In the Post Deployment Steps, select the test cases that you have recently created.
  14. 14.
    Please check the View History page for a detailed summary report of the operation carried out.