Forcetalks | yash ghatge | Activity https://www.forcetalks.com/yash-ghatge/activity/ Activity feed for yash ghatge. Wed, 01 Apr 2026 22:51:58 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 7d495a1a8e21a203f010eeb23433fec5 yash ghatge started the discussion how to count open cases against owner id by map in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-count-open-cases-against-owener-id-my-map/ Mon, 31 Dec 2018 08:13:29 +0530 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) )

]]>
c8dbaf257af547f953a643d0fda5e06d yash ghatge became a registered member https://www.forcetalks.com/activity/p/90646/ Mon, 31 Dec 2018 08:10:21 +0530 0