You need to sign in to do that
Don't have an account?

Hello, Please me on this requirement. Count Account with Diffrenent Industry(e,g. For Industry Electronics we have 3 Accounts) using Map
Hello, Please me on this requirement.
Count Account with Different Industry(on account picklist fields is there)(e,g. For Industry Electronics we have 3 Accounts) using Map.
plz help me i am new in apex collection.
Count Account with Different Industry(on account picklist fields is there)(e,g. For Industry Electronics we have 3 Accounts) using Map.
plz help me i am new in apex collection.
Greetings!
Here is the document which will give the sample code for counting the contacts with the same parent Account.
https://developer.salesforce.com/forums/?id=906F0000000AcdaIAC
You can make changes in the code as per your code.
Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.
Warm Regards,
Shirisha Pathuri
Think about the business need. If i'm looking at the detail of an Account, do I really need to, at that time, know that there are x number of other accounts in the same industry? A report will give the information you need.
Regards
Andrew
Please try the below code.
Let me know if it works.
Regards
Ayush Sharma