COUR_CreateCourseHeader_TDTM
Course trigger handler/TDTM for creating new Course Headers
Table of Contents
| Custom Permission | None |
| Event | BeforeInsert, BeforeUpdate |
| Object | Course |
| Related RIO Education Settings | Enable Course Versioning |
Description
When a Course is inserted or updated, if this is a new Course, this trigger will create a new Course Header if one doesn't exist already and the Course: Status is Active. If this is an existing Course being updated, this trigger will create a new Course Header if one doesn't exist already, and the Course: Status has been changed to Active.
When the Course Header is created, the Course Header: Educational Institution is populated with a lookup to the Parent Account (Educational Institution) of the Course: Department. Course: Course Header will be populated with a lookup to the newly created Course Header, and Course: Latest will be set to true.