function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nandananandana 

I have one Account. that account having 4 contacts. If i update one contact email id. That email will update remaining contacts and account also. how to write using triggers?

GauravGargGauravGarg
Hi Nandana,
Please follow below approach:
  • In after update of Contact, create a list of all the related Accounts (accountId).
  • Query all the contacts and Account Email. 
  • write apex to contact and account record field and store into a map or list.
  • Call update contact and account method. 

Hope this helps!!!

Thanks,

Gaurav
Skype: gaurav62990