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
RDenisRDenis 

Creating a "Last Called" Field

Has anyone created a code for this? We would like to create a new field that returns the last time a lead, or contact, was called. The problem with the "last activity" field is that it includes mass emails which doesn't really help us. Figure we need to use Apex code to query the type of activity etc. and bring back the date of the last phone call. 

SiddharthSiddharth

I am not sure how you track down the Phone call made to contact in the system. I am just guessing that if tasks are being used then create a trigger on task after insert to update the "Last Called" date on Contact object.

 

Thanks

Siddharth