-
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
Boost Fundraising With Salesforce Nonprofit Cloud Implementation
Trusted by more than 150,000 customers globally, Salesforce is one of the most popular and go-to CRMs for corporates and enterprises. It empowers organizations to…
Learn About Apex Web Services Unit | Salesforce Developer Guide
Apex Web Service You'll uncover your Pinnacle lesson strategies as a REST or Cleanser web benefit operation. By making your strategies callable through the net,…
Popular Salesforce Videos
Allies Unite at Dreamforce 2019! Datafam march to trailblazers, Drumrolls!
mid laughter and boisterous conversations at Dreamforest, Datafam - the Tableau workforce - turned all heads with a remarkable entry marked with riotous sounds and…
Custom Portfolio in Salesforce | Mini Project | Salesforce Tutorials
In this video, we will create a custom portfolio in Salesforce. We will create a custom community in Salesforce and customize it to create the…
Salesforce + WhatsApp Integration Announcement
Salesforce + WhatsApp Integration Announcement. Watch this video to learn all about the famous Salesforce + WhatsApp integration, if you have any doubts or concerns,…