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
Rodolfo CP RitoRodolfo CP Rito 

Count Records of an user in an object

Hi,

Could you please let me know how can I count the leads records of an user and insert that value on the user profile?

Thank you a lot !!!
Santosh Sriram 2310Santosh Sriram 2310
Hi Antoniio

Can you elaborate your requirement further? So, is this a one time activity or ongoing activity? The design will change based on the details you provide.

Thanks
Santosh 
Rodolfo CP RitoRodolfo CP Rito
Hi Santosh,

This is an ongoing activity.

Basically I want a trigger that helps me counting how many leads a user has with a specific value on the lead status "New" and on lead stage "Virgin".

If the value is > = X then more leads can't be assigned to that person. If the value is < X more leads can be assigned!