-
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, 7 months ago by
Forcetalks.
-
This discussion was modified 7 years, 7 months ago by
Forcetalks.
-
This discussion was modified 7 years, 8 months ago by
Log In to reply.
Popular Salesforce Blogs
8 Salesforce Service Cloud Enhancements to Deliver Exceptional Customer Experience
A customized Salesforce Service Cloud can go a long way in helping you deliver exceptional customer experiences. But what is it is that you can…
Salesforce Lightning Web Components: The new way of creating robust components for modern browsers
Salesforce has been on a great journey with the Lightning modules. In 2014, Salesforce had launched the Lightning component framework that was supported by the…
How to Integrate Salesforce With Social Media Channels
More than 60% of the world now uses social media and has active profiles on more than six social media platforms. Social networks have long…
Popular Salesforce Videos
Create and Format Derived Measures
In the explorer, you can perform calculations on existing measures and use the results to create a new measure that’s not part of your dataset.…
Building a Custom UI with Lightning Web Components | Salesforce Tutorial
Lightning Web Components is a modern JavaScript framework that leverages the web standards breakthroughs over the past few years. Watch this session to understand how…
Create Targeted Campaigns w/ Marketing Cloud Advertising | Salesforce Demo
Explore the power of using 1st party data to power ad audiences across the most popular ad channels today, including Google (Search, Shopping, YouTube, Gmail),…