Triggers in the ACME Managed Package
Modified on: Thu, 11 Feb, 2021 at 6:46 PM
Trigger to keep Contact Mailing address in sync when the acme address object is updated
If no record type is set, it will set the Account.RecordTypeId based on the Account.acmetech__Type__c
and if Account.RecordTypeId but no Account.acmetech__Type__c, it will set the corresponding type value.
And increments Account.acmetech__Sf_Version__c
Sets the membership Primary_Member__c, Account, Organization Import Id based on the card Contact information.
Sets the level description, cleaning up html tags and the organization import id if none is set and the membership has an account
Sets the Opportunity purchaser if the Opportunity has a Acmer Customer Id, and sets the AccountId based on the Account of the associated Contact obtained
from the Opportunity.acmetech__Acme_Customer_ID__c, if the Opportunity has a acme id and no record type, it will set to the acme order record type.
Links the Line Item to the Opportunity based on the LineItem.acmetech__Acme_External_Order_Id__c, it will also updated the membership paid price and link the
membership to the Opportunity.
Did you find it helpful?
Sorry we couldn't be helpful. Help us improve this article with your feedback.