-
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, 1 month ago by
yash ghatge.
-
This discussion was modified 7 years ago by
Forcetalks.
-
This discussion was modified 7 years ago by
Forcetalks.
-
This discussion was modified 7 years, 1 month ago by
Log In to reply.
Popular Salesforce Blogs
Iteration Components Used In Salesforce VisualForce Pages
Iteration Components Used In Salesforce Visualforce Pages Iteration Components allow you to display the output of content on the page in the form of a…
Salesforce: Data Protection Laws In USA
US Privacy Law Basics Privacy a term which is related to the protection of information. Privacy law established into the globe to protect information about…
Balancing Human & Ai-Powered Customer Service
Customer service is the vital relationship between a company and its customers, since it helps to keep and improve the value of those customers. By…
Popular Salesforce Videos
What is Record Types in Salesforce?
Record Types is where you have multiple page layouts to a specific profile. Watch this video to learn all about it.
Top 6 Products by Salesforce Marketing Cloud
Salesforce is largely regarded as the most influential Salesforce automation and cloud CRM vendor, having popularized the SaaS model and, in the process, disrupted the…
Explore Our Salesforce Story
Explore the origins of Salesforce and how the Futureforce program came to be. Watch this video and do connect with us and share your experience…