-
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, 3 months ago by yash ghatge.
- This discussion was modified 5 years, 2 months ago by Forcetalks.
- This discussion was modified 5 years, 2 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Improve Patient Experience with Salesforce Health Cloud
Patients are conserved and sensitive towards what kind of healthcare services they experience. When the systems of healthcare face issues like documentation, customized health plans,…
How to use Loading Spinner in Salesforce Lightning Component?
How to use Loading Spinner in the Salesforce Lightning Component? Definition of Loading Spinner: Don’t forget to check out: How Variable Types Operate in the…
Salesforce Experience Cloud: A Comprehensive Guide
In order to maintain a competitive advantage, businesses must continually adapt to the ever-changing needs of their customers. To meet these customer demands and stay…
Popular Salesforce Videos
Salesforce Admin Certification 2020 Questions Explained with References - Part II
How to prepare and pass Salesforce Admin Certification with Practice Exam Questions 2020 practice questions and answers for the Salesforce Administration Salesforce Certified Admin Exam Questions Salesforce Administrator Certification Exam…
Crash Course on Apex Triggers Salesforce | Complete Guide with Real Time Scenarios
Complete guide on Apex Triggers Salesforce 0:00 Intro 0:33 Is Triggers difficult to Learn 0:50 What is Trigger? 3:03 What are Trigger events? 11:55 How…
Salesforce Introduced Next Generation Of Tableau Cloud
Salesforce added a new member to its fleet of the cloud for customers: Salesforce Tableau Cloud. The Tableau Cloud developed will empower the customers to…