You need to sign in to do that
Don't have an account?
kishore yakkala
write apex class to fetch all opportunity records related to accounts
write apex class to fetch all opportunity records related to accounts
like---
account1----having---opportunity 1
opportunity 2
opportunity 3
like---
account1----having---opportunity 1
opportunity 2
opportunity 3
You can check this below snippet that has an implementation of showing account and related opportunities in a visualforce page:
You can use the above apex class that fetches the accounts and related opportunities.
reference: https://developer.salesforce.com/forums/?id=9062I000000XuSyQAK
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
try following apex class and complete your requirment.
let me know if it helps you and close your query by marking it as best.
Thank you