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
Niraj Kumar 9Niraj Kumar 9 

Need a trigger to count all task associated with Account, contact and opportunity. Update the Account Count field

Hi Guys,

I need a trigger to count all task associated with Account, Contact and opportunity .Update the Account count field in Account .
Eg- Account have 2 task and related Contact and opportunity related to this Account have one one task respectively.
In Account count field Show 5 instead of 2.

Thanks in Advance
Niraj Kumar 9Niraj Kumar 9
Hi,

Sorry . In Account Count Field Shows 4 instead of 2.