-
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
Simplified Guide To Debugging In Salesforce
Debugging is a critical skill for anyone working in Salesforce. It helps identify and resolve issues in various components like Apex classes, triggers, Flows, Lightning…
Shifting Mindsets for Success – From Consultant to Solution Architect
The consultant role is known for its significant value in the business landscape. Such professionals bring valuable insights and new perspectives to organizations looking for…
Community events take your business to the next level, and here is why?
Events designed for the community, created by the community. Those are this year’s places to be. And yes, massive conferences like Dreamforce bring invaluable &…
Popular Salesforce Videos
Apex Variables & Datatypes | Apex Basics | Salesforce Development Tutorials
In this video variables, datatypes, literals and identifiers in Apex language have been explained in detail . This video contains only the primitive datatypes in…
Salesforce Agentforce for Nonprofits
With Salesforce's latest AI tool, Agentforce, you can boost your Salesforce org with AI agents that can streamline workflows, reduce costs, and improve your constituent…
Salesforce Trailblazer Answers Leaders on YouTube
At Salesforce we’re using the power of our Trailblazer Community with Slack Connect to scale self-help content creation. Watch this short video to learn how…