-
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, 3 months ago by
yash ghatge.
-
This discussion was modified 7 years, 1 month ago by
Forcetalks.
-
This discussion was modified 7 years, 1 month ago by
Forcetalks.
-
This discussion was modified 7 years, 3 months ago by
Log In to reply.
Popular Salesforce Blogs
Create Sharing Rules Unit in Salesforce - Learn Here
Hey there, since we have already talked about the sharing rule now let’s have a look at how to create these sharing rules. You can…
Salesforce Managed vs. Professional Services: Which One is Right for Your Business?
Salesforce provides a range of services to help organizations optimize their CRM capabilities. When it comes to leveraging the power of Salesforce, organizations often navigate…
Google Teams Up With Salesforce to Push Cloud Computing Business
Do you know a strategic partnership is all set to disrupt the global cloud market? Yes, Salesforce recently announced its partnership with Google in order…
Popular Salesforce Videos
How to Create a File Location in Salesforce Marketing Cloud
Cameron Robert shows how to use PuttyGen to generate and create an SSH Key for SFTP usage in Salesforce Marketing Cloud, then how to create…
Step-by-Step Guide to Implementing Einstein Chatbot in Salesforce
Watch this video to learn about the following: Introduction to Einstein Chatbot and its capabilities. Prerequisites for setting up the chatbot in your Salesforce environment.…
Salesforce JavaScript Developer 2 Certification Series
Hi Everyone, SFDC Panther has started the Salesforce JavaScript Certification series and this is the second session of the series. I already have uploaded the…