I would like some help where when a user owns a case and I want to go to their user page and see how many cases the user currently owns.
-
3You can accomplish this with a report, FYI. If you need this information on the User object, then you need to create a custom rollup summary using apex or install Rollup Helper from the AppExchange– greenstorkCommented Jun 24, 2014 at 18:10
-
Do you want only the number of cases or the details of those cases to appear on the user page?– Chetan GuptaCommented Jun 25, 2014 at 2:44
-
I would like to the number of cases.– Scott SumnerCommented Jun 25, 2014 at 14:17
Add a comment
|
1 Answer
This utility will assist you with performing this function:
- Create a field on the user record to store the value
- Implement this code
- Use OwnerID on case for the Case lookup field
- User ID on user from the User lookup field **Note: they do not have to be lookup fields, they just need to be ID fields
Then every time a case is created use a trigger to run the code and the counts will be rolled up to the User record
CODE HERE:
http://www.anthonyvictorio.com/salesforce/roll-up-summary-utility/