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
coppelcoppel 

Last Activity Date

Has anyone figured out a way to show a last activity date on accounts for both open and completed activities?  Basically I am just trying to find a way to show the last time someone did any kind of task work on an account.

 

Thanks in advance for any help!

Best Answer chosen by Admin (Salesforce Developers) 
jpizzalajpizzala
You could create an Apex trigger that evaluates the dates from all Task/Event records for an Account when one is created or modified on it.

All Answers

jpizzalajpizzala
You could create an Apex trigger that evaluates the dates from all Task/Event records for an Account when one is created or modified on it.
This was selected as the best answer
coppelcoppel
Thanks Justin, I was able to make that work.  I appreciate your help!
sidvidsidvid

Hi,

 

I am trying to implement something similar but not able to do it. Is there a code snippet available for this?

 

Thanks,
Sid