Payment Connector 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 Payment Connector package:
- preInsertPurchaseItem
-
Trigger/Class preInsertPurchaseItem Object TargetX_Payment__Purchase_Item__c Type Before Insert Description When a new Purchase Item record is inserted, checks to see if the Item Code field is blank. If blank, populates Item Code with the Default Item Code from the associated payment connector record. Relationship from Purchase Item record: Transaction__r.Payment_Connector__r.Default_Item_Code__c Affects TargetX_Payment__Purchase_Item__c How affected Item Code field updated. Criteria Purchase Item is inserted AND Item Code field is blank. Custom Setting N/A Custom Setting Description N/A Package Version 1.23 - current
- preUpdatePurchaseItem
-
Trigger/Class preUpdatePurchaseItem Object TargetX_Payment__Purchase_Item__c Type Before Insert Description When a new Purchase Item record is inserted, checks to see if the Item Code field is blank. If blank, populates Item Code with the Default Item Code from the associated payment connector record. Relationship from Purchase Item record: Transaction__r.Payment_Connector__r.Default_Item_Code__c Affects TargetX_Payment__Purchase_Item__c How affected Item Code field is updated. Criteria Purchase Item is inserted AND Item Code field is blank. Custom Setting N/A Custom Setting Description N/A Package Version 1.23 - current