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
Aron Schor 24Aron Schor 24 

Is it possibly to Query Apex Classes and the Object they are tied to?

I am aware you can query the ApexClass object in Workbench, but how can I see which Object each class is associated with?  I am an admin given this task so perhaps there is a technical reason why this can't done but let me know if there is way to do this.  Thanks.  Aron
VinayVinay (Salesforce Developers) 
Hi Aron,

You can retrieve metadata (using ant) of all apex class and objects and check the references which object is associated with the apex controller.

Thanks,
Vinay Kumar