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
David DanzigDavid Danzig 

Code to Update Fields on an Object Related to Activities?

I've tried every which way to update Contacts based on Activities without using code, but have hit dead ends everywhere. So, I'm turning to you guys. Please help me write a Trigger (or Class if that's necessary) to update fields on Contact such as 

1- Last Activity of a Certain Type (based on fields in the activity rec) to go into a Date or Date/Time field on Contact, and

2- a Sum of Activities based on certain criteria - to go into a Number field I assume on contac.

 

 

Thank you very much,

 

David.