-
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, 9 months ago by
yash ghatge.
-
This discussion was modified 7 years, 8 months ago by
Forcetalks.
-
This discussion was modified 7 years, 8 months ago by
Forcetalks.
-
This discussion was modified 7 years, 9 months ago by
Log In to reply.
Popular Salesforce Blogs
Salesforce REST API Integration With Shopify
Here I come again with another blog of mine which will help you out in the integration of Salesforce with Shopify platform. Shopify is a…
Salesforce Development Vs. Traditional Development
The competitive nature of present living standards has always kept every individual in the race for success. The urge to grab the crown and be…
HubSpot to Salesforce Migration: 3 Ways To Do It Right
If you find that your business needs are evolving and you want to leverage the capabilities of Salesforce, transitioning from HubSpot can be a strategic…
Popular Salesforce Videos
70 Salesforce Interview Questions for the Beginners
First of all, How it is different from the other Salesforce Interview questions videos? Well, We have divided the questions into categories so that you…
Pardot vs Marketing Cloud: What's The Difference?
There are different functions of each Salesforce product according to the use cases. Many businesses get confused between Salesforce Pardot and Marketing cloud. Pardot is…
Summer '20 Release - Release Updates Page
Check out the new Release Updates Page. Salesforce Summer '20 is full of amazing features for #AwesomeAdmins! Check out what's new when you follow and…