You need to sign in to do that
Don't have an account?
Murali Krishna 381
maps and soql
Create a Method to find for an Account what are its related case records
In terms of Hierarchy, An account can have mutliple contacts and one contact can have multiple cases
Create class and a method that queries all Accounts and prepare a map as below:
A map where key is the account Id and value is list of related Case Ids (Map<id,list<Id>> AccountRelatedCaseMap)
Note: Account is grand parent to case. please help me in solving this use case guys
In terms of Hierarchy, An account can have mutliple contacts and one contact can have multiple cases
Create class and a method that queries all Accounts and prepare a map as below:
A map where key is the account Id and value is list of related Case Ids (Map<id,list<Id>> AccountRelatedCaseMap)
Note: Account is grand parent to case. please help me in solving this use case guys
Hi Murali Krishna,
I am sharing with you the apex class code for getting the Map of accountId Vs List<Case> Map
If this answer is helpful to you then mark this as the best Answer.
Thanks