-
how to count open cases against owner id by map in Salesforce?
list<AggregateResult> result = ([select ownerid,count(id)total from case where isclosed = false group by ownerid]);
map<id,integer> mapresult = new map<id,integer>
For (AggregateResult aggresult : result)
{
mapresult.put(aggresult.get(aggresult.ownerd),aggresult.get(total) )
-
This discussion was modified 7 years, 8 months ago by
yash ghatge.
-
This discussion was modified 7 years, 6 months ago by
Forcetalks.
-
This discussion was modified 7 years, 6 months ago by
Forcetalks.
-
This discussion was modified 7 years, 8 months ago by
Log In to reply.
Popular Salesforce Blogs
Know All About the Role of Salesforce Administrator
The role of a Salesforce Administrator is wide and varied, depending on the skills of the person performing the role and the size/complexity of the…
5 Benefits of Salesforce for Insurance
When it comes to insurance CRM, Salesforce enjoys massive popularity, and deservedly so. Salesforce goes beyond the typical CRM functionalities and offers out-of-the-box capabilities. It…
The Backbone of Customer Service: Mastering Case Management in Salesforce Service Cloud
In the dynamic world of customer service, efficiency and organization are paramount. Every interaction, every query, and every issue needs to be tracked, managed, and…
Popular Salesforce Videos
Salesforce Resume Review
Salesforce is a well-known company and leader in the cloud computing space so we would say it would be an asset on a resume. Thinking…
Heroku | Salesforce Development Course
Knowledge of Heroku is also required to crack the Salesforce PD 1 Certification Examination. Let’s understand what Heroku is and what are its uses, in…
Redefining the Digital Landscape With Our Innovative Salesforce Solutions
Watch this video to learn how Grazitti has been empowering Salesforce users' marketing journey with their Salesforce capabilities and Salesforce-native and Lightning-ready custom solutions, that…