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__cCustom 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 - Creates a security hash on recommendation objects which is used so that people can't change a salesforce ID and see somebody else's recommendation.
- Sends email to recommender when a new recommender is added or email of existing recommender is changed.
Affects TargetX_SRMb__Recommendation__c How affected - Security hash added on recommendation object.
- Email sent to Recommender
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: - TargetX_SRMb__Application_Fee_Payment_Received__c = true
- TargetX_SRMb__Application_Fee_Amount__c = TargetX_Payment__Confirmed_Amount__c
- TargetX_SRMb__Application_Fee_Payment_Type__c = 'Credit Card'
- TargetX_SRMb__Application_Fee_Received_Date__c = Date.today()
- TargetX_SRMb__CC_Approval_Number__c = pmt.Targetx_Payment__Confirmation_Code__c
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__cHow 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