ANN_SendNotification_TDTM
Announcement trigger handler/TDTM to send notifications
Table of Contents
| Custom Permission | REDU - Admin, REDU - Faculty |
| Event | AfterInsert, AfterUpdate |
| Object | Announcement |
| Related RIO Education Settings | None |
Description
The following are the criteria for this to trigger:
| Event Trigger | Criteria |
| AfterInsert |
Notification Channel Type includes Notification, AND, Status = Active, AND, Notification Target Type != blank, AND Published = False. |
| AfterUpdate |
Notification Channel Type includes Notification, AND, Status is changed, AND, Status = Active, AND, Notification Target Type != blank, AND, Published = False. |
If the Announcement record has Notification Channel Type = Notification, the TDTM will update the following fields on the Announcement record, after the notification is sent successfully:
- Published = TRUE.
- Published Datetime = System.now()
Use case
This is used to send notifications to students and faculties, when the admin wishes to notify them of changes in their Session (e.g. time, venue).
See here for a use case example: Session notifications.