Schedule Apex Classes Monthly
Last updated
Last updated
The user can schedule an Apex class that implements the 'Schedulable' interface to be automatically executed monthly using this template.
To create this template, follow the below steps:
Login to your AutoRABIT account.
Click on Env. Pro. module.
Click on Create New Template.
Go to the Create Unsupported Metadata Template tab.
Give the template a name and a short description of it.
Select the ScheduleApexClassesMonthly checkbox available under Schedule Monthly Apex Class Job.
Click Add.
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.
Job Name and Apex Class: give a name to the process in the Job name field; next, enter the Apex Class.
Choose the preferred date and time for the process to be executed automatically.
Click Save to save the template.
Once the template is successfully created, you'll be redirected to the Environment Provisioning History screen.
Click the Run button to run the template on your destination org.
Select your destination org from the dropdown and enter the email address(es) to receive an email notification whenever the template is run.
In the Post Deployment Steps, select the test cases that you have recently created.
Please check the View History page for a detailed summary report of the operation carried out.