Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created June 26, 2022 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/02c0a12fb9053cb7dbfcb0b2f19ff03b to your computer and use it in GitHub Desktop.
Save arun12209/02c0a12fb9053cb7dbfcb0b2f19ff03b to your computer and use it in GitHub Desktop.
AccountTriggerHelper.cls
public without sharing class AccountTriggerHelper {
//Constructor
public AccountTriggerHelper() {
system.debug('Inside AccounttriggerHelper Constructor');
}
/**
* @description updateAccountOwner method updates accounts owner records.
* @param accList
*/
public void updateAccountOwner(List<Account> accList){
//write logic to update the account owner
}
/**
* @description updateAddresses method updates contact address if account address is changed,
* if more than record found with same zipcode then it gets random record.
* @param accList
*/
public void updateContactAddress(List<Account> accList) {
//write update contacts logic below
}
//Write other methods here as per your requirements
/******************** ADD MORE METHODS*************************/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment