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
AbanteAbante 

Activities RowCount

Hello everyone,

 

Is there any way to have in Contact Layout the number of activities that I've had with him? Because we would like to know which clients require more attention and resources.

cloudgofercloudgofer

that's an interesting requirement,  tried querying OpenActivities object but it does not support querying. Another option is to create a custom number field on contact and if somehow that can be updated (incremented) via after insert trigger. Need to try and see how that goes.. some thoughts but need to try !!

cfahertycfaherty

If all else fails you can query Event and Task sobjects, get count() on each with appropriate criterion.