Online Application Triggers
A Trigger is a section of code executed before or after inserting or modifying a Salesforce record based on a condition provided. There are different types of triggers based on the actions to be performed. Listed below are the triggers available in the TargetX Online Application package:
EnrollmentDepositTrigger
| Trigger/Class | EnrollmentDepositTrigger |
| Object | Application |
| Type | after insert, after update |
| Description | Updates a student's status (stage) to Deposited when an application deposit is received. Note: This trigger does not update data if the student's status is "Enrolled". |
| Affects | Contact.TargetX_SRMb__Status__c |
| How affected | Set to Deposited |
| Criteria | Sets Contact.TargetX_SRMb__Status__c to Deposited when Contact.TargetX_SRMb__Status__c is not Enrolled. |
| Custom Setting | Object Name: SRM_Preferences Field Name: Enrollment Deposit Field API Name: TargetX_SRMb__Enrollment_Deposit__c |
| Custom Setting Description | Enrollment Deposit permits trigger's functionality to be turned on/off. |
| Package Version | 2.0 - Current |
OnlineAppRecommendationTriggers
| Trigger/Class | OnlineAppRecommendationTriggers |
| Object | TargetX_SRMb__Recommendation__c |
| Type | After Insert, After Update, Before Insert |
| Description |
|
| Affects | TargetX_SRMb__Recommendation__c |
| How affected |
|
| Criteria | Recommendation is inserted and mail is addeed/updated for a Recommender. |
| Custom Setting | N/A |
| Custom Setting Description | N/A |
| Package Version | 1.0 - current |
PaymentDetailAfterUpdate
| Trigger/Class | PaymentDetailAfterUpdate |
| Object | TargetX_Payment__Payment_Detail__c |
| Type | After Update |
| Description | Updates Application record when deposit is received from the payment gateway. |
| Affects | TargetX_SRMb__Application__c |
| How affected | Updates the following:
|
| Criteria | Payment is successfully submitted. |
| Custom Setting | N/A |
| Custom Setting Description | N/A |
| Package Version | 1.0 - current |
setFeeWaiverInfo
| Trigger/Class | setFeeWaiverInfo |
| Object | Application |
| Type | before insert, before update |
| Description | Sets fee waiver date and approver. |
| Affects | fee_decision_by__c fee_waiver_decision_date__c |
| How affected | Updates affected records with the UserID and date. |
| Criteria | fee_waiver_decision__c is either Approved or Denied. |
| Custom Setting | N/A |
| Custom Setting Description | N/A |
| Package Version | 1.1 - Current |
