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
Pawan MakkarPawan Makkar 

Trigger senario2

1) Make two DateTime fields on contact object.

LastTaskCreatedTime

LastEmailSentTime


2) Whenever a task is created on Contact LastTaskCreatedTime field should be updated.


3) Whenever you send an email LastEmailSentTime field should be updated.

4) Make trigger as bulk / Test class


Ans me on-Amuraghav14@gmail.com
Shawn Reichner 29Shawn Reichner 29
You can achieve this by running a process on Task and Email