-
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, 4 months ago by
yash ghatge.
-
This discussion was modified 7 years, 3 months ago by
Forcetalks.
-
This discussion was modified 7 years, 3 months ago by
Forcetalks.
-
This discussion was modified 7 years, 4 months ago by
Log In to reply.