Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created June 26, 2022 12:18
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/bd23a427b38d2f5cc26a634b40c67d1f to your computer and use it in GitHub Desktop.
Save arun12209/bd23a427b38d2f5cc26a634b40c67d1f to your computer and use it in GitHub Desktop.
ContactTriggerHelper.cls
public without sharing class ContactTriggerHelper {
//Constructor
public ContactTriggerHelper() {
system.debug('Inside AccounttriggerHelper Constructor');
}
/**
* @description updateContactsCountOnAccount method counts number of contacts on account records.
* @param conList
*/
public void updateContactsCountOnAccount(List<Contact> conList){
//write logic to update the account owner
}
/**
* @description updateAddresses method updates contact address
* copy billing address to contact mailling address
* @param conList
*/
public void updateContactAddresses(List<Contact> conList) {
//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