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
aamir arshadaamir arshad 

trigger scenario base Question

a custom field on Contact "Salary"

a custom field on Account "Average Salary"

We need to calculate "Average salary" whenever a new contact insert/update/delete
ShirishaShirisha (Salesforce Developers) 
Hi Aamir,

Greetings!

Please find the sample code in the below thread and make changes according to your bussiness logic.

https://developer.salesforce.com/forums/?id=906F00000008nmkIAA

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri