You need to sign in to do that
Don't have an account?
Andrii Volkov
Apex Trigger to Count Activities Related to Current Lead Owner
Lowly Admin here who doesn't know Apex... I need to count the number of Activities (Tasks and Events) associated with the Lead that were logged by CURRENT lead owner. I want the total to appear in a field on the Lead object called Times_contacted_by_owner. Would any of you gracious developers be willing to help me with the trigger?
All Answers
Below link has a working examples
https://developer.salesforce.com/forums/?id=906F00000009sTZIAY
https://salesforce.stackexchange.com/questions/213549/help-with-a-trigger-for-counting-activities
However, you would need a developer to make changes as per your requirement in your org.
Thanks,
Vinay Kumar
Did you ever get a test class for this? I need help on that one too!