Session Connection faculty attendance trigger handler/TDTM
If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.
|Custom Permission||REDU - Admin, REDU - Faculty
|Event||AfterInsert, AfterUpdate, AfterDelete
|Related RIO Education Settings||Respect Faculty Availability For Alloc.
Whenever a new Faculty Session Connection:
with checked Faculty and Auto Attendance Creation fields, and non-null Start Date and Session Time fields are inserted,
or if the Start Date, End Date, Auto Attendance Creation, or Session Time fields on an existing Session Connection are changed,
this class will create an Attendance record for each Booking in the range between the Session Connection Start Date and End Date if one does not already exist.
It will set the Start Date of the Attendance to the Start Date (Non TZ) of the Booking and link to the Session Connection and Booking records.
If the Faculty Member has an Approved Leave Request covering the time of the Attendance, then the Excused field is checked and the Excused Reason field is set accordingly.
If the Respect Faculty Availability For Alloc. custom setting is enabled, it will only create the Attendance records if the Faculty Member is available at that time for that Session.
It will also delete any existing Attendance records for Bookings that are outside the valid date range.
If a Faculty Session Connection is deleted, this class will check the Revalidate Faculty Allocation field on any related Sessions.