-
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 5 years, 4 months ago by yash ghatge.
- This discussion was modified 5 years, 3 months ago by Forcetalks.
- This discussion was modified 5 years, 3 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Intriguing Features and Channels on Salesforce+
Earlier this year Salesforce introduced Salesforce+ that includes Live experiences, original series, podcasts, and other content that are all part of Salesforce+. Salesforce+ will illuminate…
Steps to Secure Transaction using Transaction Security in Salesforce
Hi All! Here we will learn how to provide security in Salesforce when you perform any event of transaction like data export or import and…
Popular Salesforce Videos
A Beginner's Guide to Getting Started with Salesforce APIs Using Postman
A Beginner's Guide to Getting Started with Salesforce APIs Using Postman - Create Connected Apps in Salesforce - Introducing Postman - Connect to Salesforce from…
Salesforce Einstein Discovery Spring 21
Einstein Discovery is AI-powered analytics that enables business users to automatically discover relevant patterns based on their data – without having to build sophisticated data…
What it Means to be a Salesforce Developer
In this video, Salesforce with Polina describes what it means to be a Salesforce Developer. She goes on to describe the different types of Salesforce…