-
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, 10 months ago by
yash ghatge.
-
This discussion was modified 7 years, 9 months ago by
Forcetalks.
-
This discussion was modified 7 years, 9 months ago by
Forcetalks.
-
This discussion was modified 7 years, 10 months ago by
Log In to reply.
Popular Salesforce Blogs
System Events in Salesforce - Learn All About it Here
The Lightning framework fires system events automatically during component initialization, attribute value changes, rendering, and so on. In their HTML markup, all Components can register…
Salesforce Implementation Strategy in 2022 - An A to Z Guide
A go-to-market plan is critical for a company's growth amid difficult times. With Salesforce being such an important part of the strategy, it's critical to…
A Comprehensive Guide To Salesforce Admin Salary
Salesforce has once again authorized the best Salesforce CRM for the 10th time, administering to enhance the customer base around the world. But is the…
Popular Salesforce Videos
What's Up with What'sApp? | Explained by Salesforce
With over 2 billion users, WhatsApp is the world’s most popular messaging app. WhatsApp channels are supported by Digital Engagement for Service Cloud. You can…
Manage Record Access and Visibility in Salesforce
Watch this video to learn all about managing record access and visibility in Salesforce. Do let us know in the comment section if you have…
Creation Of An App In Salesforce | Salesforce Development Tutorial
Creation of an app in Salesforce. This video will cover the following points - App Creation Get to know why an app is created. Configuration…