function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Need a visual force page which will display all the existing pages and their controllers



I have a requriment of a view in which i get a list of all the visual force pages and their associated controller classes.

Currently i have to go to each and every page under Setup|Develop|Pages then view that page and then click on "Show Dependencies". An this step i have to carry out for each and every page which i want to know.


If i can have a small utility code whcih will take page name as input and give me its controller name that would be of great help to get the entire list of VisualForce Pages against its controllers.


Any Suggestions?

You can try to play with REST API of tooling API. It might help you -

To make the question more clear.

How can i retrieve the controller name used in a visualforce page without opening the page in development mode and without clicking on the show dependencies button??