SN_UpdateReportedUserSharing_TDTM
Student Note trigger handler/TDTM for updating sharing for Reported By user
Table of Contents
| Custom Permission | REDU - Student Success Manager, REDU - Student Success User |
| Event | AfterInsert, AfterUpdate |
| Object | Student Note |
| Related RIO Education Settings | None |
Description
When a Student Note record is inserted or updated, if the Owner is updated by SN_AssignOwnership_TDTM (which will consider if Student Note Owner Type is set to Reported User), this trigger will update the manual sharing for the old and new Reported By users.
If the record is inserted, the new Reported By user will be shared Edit access to the Student Note record, if they do not have access already and have a 'Standard' UserType (to skip sharing to Community users).
If the record is updated, and the Reported By user has changed, in addition to the above, the old Reported By user will have their sharing access removed.