• #55239
    Salesforce | yash ghatge yash ghatge #105
    Forcetalks

    how to count open cases against owener id by map?

    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 topic was modified 3 weeks, 2 days ago by Salesforce | yash ghatge yash ghatge.
Viewing 1 post (of 1 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?