Setting up Scheduled Jobs
Asperato Connector uses two scheduled jobs to complete the process of collecting and cash-matching payments. Both these jobs must be created and run by a dedicated user with an Accounting license, Administrator permissions, and access to all companies and all companies selected.
- The Asperato Repeat Payment Apex job, used for collecting payments. This job is created automatically when Asperato ONE is installed, and must then be deleted and rescheduled. For more information, see the Asperato documentation.
- The Payment Processing Apex job, used for creating cash entries and cash-matching payments.
Deleting the Asperato Repeat Payment Apex Job
To delete the job:
- From Setup, click Environments | Jobs | Scheduled Jobs.
- Delete the "Asperato Repeat Payment" job.
Scheduling the Asperato Repeat Payment Apex Job
To schedule the job:
- From Setup, click Develop | Apex Classes.
- Click Schedule Apex and configure the following settings:
- Enter the name Asperato Repeat Payment for your scheduled job.
- Enter the name BatchProcessPaymentSchedules for your Apex Class.
- Set the frequency of the job to "Weekly".
- Select days Sunday-Saturday.
- Set the date to today’s date.
- Set the start date to today's date.
- Set the end date, for example, 31/12/2050.
- Set the Preferred Start Time, for example, 04:00 or 05:00.
- Click Save.
Creating the Payment Processing Apex Job
- From Setup, click Develop | Apex Classes. If you are using Lightning Experience: From Setup, click Custom Code | Apex Classes.
- Click Schedule Apex and configure the following settings:
- Enter a name for your scheduled job.
- Enter the name FFASPPaymentScheduler for your Apex Class.
- Set the frequency of the job.
- Select the days of the week on which the job recurs.
- Set the start date for the job.
- [Optional] Set an end date for the job.
- Set the preferred start time for the job.
- Click Save.