CON_Contact_TDTM
Contact trigger handler/TDTM
Custom Permission | REDU - Admin, REDU - Faculty, REDU - Student, Guest |
Event | BeforeInsert, BeforeUpdate |
Object | Contact |
Related RIO Education Settings | Community Username Suffix |
Description
This class allows students to define a username prefix.
Whenever a new Contact is inserted with the Community Username (Prefix) field set, or if an existing Contact's Community Username (Prefix) field is updated, it creates the student's username by taking the specified prefix and concatenating the default Community Username Suffix.
It then sets the Contact's Community Username field to this value. If the new username is already taken by an existing user, this class will fail with an error "The username is taken. Try another".
Use case
Helps standardized community username and prevents duplicates.