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

Not finding a proper solution for account hierarachy
I have a requirement on which on click of the button i have to show the Hierarchy of accounts & its related contacts like :
Account1->Contact1,Contact2
Account2->Contact1,Contact2
Not finding a proper code to get this data in another VF Page.
Account1->Contact1,Contact2
Account2->Contact1,Contact2
Not finding a proper code to get this data in another VF Page.
I've created a simple vf page for you that will do the trick. You will have to adjust it to your needs, but the basics are there.
VF Page:
And the controller:
This will output the following table:
Hope this helps!
Best regards,
Martijn Schwärzer
Please try the below sample code.
Visualforce Page
Controller
Output
Hope this helps you!
Best Regards,
Jyothsna
You can do that using the Lighting Design System Tree component. You can find the information here:
https://www.lightningdesignsystem.com/components/trees/
Happy coding!
Best regards,
Martijn Schwärzer