RIO Ready: Attendance and Grade Tracking Setup
Table of Contents
Overview
Before using this feature, the following setup steps must be completed:
- Configure the RIO Education Settings in Custom Settings.
- Schedule the Weekly Grade Rollup cron job.
- Implement the trigger handler for calculating and rolling up attendance summaries.
- Add the newly introduced fields to the Booking page layout.
Step 1: Configure RIO Education Settings
- Navigate to Setup → Custom Settings → RIO Education Settings → Manage Records.
- Update the following fields:
- redu_Weekly_Grade_Rollup_Batch_Size__c = 100
- redu_Weekly_Grade_Rollup_Last_Run_Date__c = [Set this to the start date of the week from which you want the weekly grade rollup to begin summarizing.]
Step 2: Schedule the Weekly Grade Rollup Job
- Navigate to Setup → Scheduled Jobs and click Schedule Apex.
- Create a new scheduled Apex job with the following details:
- Job Name: Weekly Grade Rollup
- Apex Class: redu_WeeklyGradeRollup_SCHED
- Schedule Using: Cron Expression
- Con Expression: 0 59 23 ? * SUN *
(Runs every Sunday at 23:59.)
- Click Save to activate the schedule.
Step 3: Create the Trigger Handler
- Navigate to the Trigger Handler tab and create a new record with the following details:
- Name: redu_ATT_BookingRollup
- Class: redu_ATT_BookingRollup_TDTM
- Object: rio_ed__Allocation__c
- Load Order: 4
- Trigger Action: AfterInsert;AfterUpdate;AfterUndelete;AfterDelete
- Active: True
Step 4
- Add the newly introduced fields to the Booking page layout.
- Add the Weekly Grade Statistic related list to the Session page layout.