PREN_AssignOwnership_TDTM
Program Enrollment assign ownership trigger handler/TDTM
Table of Contents
Custom Permission | REDU - Admin, REDU - Student |
Event | BeforeInsert, AfterInsert |
Object |
Program Enrollment |
Related RIO Education Settings | Auto Program Enrollment |
Description
When approving a Program Application, the account owner of the person account will be updated to the one who approved the application.
If a student creates a new Program Enrollment record, this class will set its 'Owner' field, to be the same as the 'Contact Owner' field on the student's Contact record.
This is to ensure that internal users can access to the Program Enrollment record, as records owner by Customer Community Login license user can't be shared via sharing rules.
If an admin creates a new Program Enrollment and the Auto Program Enrollment custom setting is selected, then this class will update the related Contact's 'Contact Owner' field, to be the same as the Program Enrollment's 'Owner' field. This is to ensure that internal users can access to the Contact record as records owner by Customer Community Login license user can't be shared via sharing rules.