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
vijaya kudupudivijaya kudupudi 

How to get dependent objects of a class?

Hi all,

I want to get all dependent objects of a class (objects used in apexclass) using programming. As like salesforce standard functionality, if we click on "show dependencies" button we are getting all dependent components. How can i achieve this by programming ? 
SandhyaSandhya (Salesforce Developers) 
Hi,

After some research, I found below links which say to use SymbolTable see if that helps you.

http://salesforce.stackexchange.com/questions/124555/find-out-dependent-fields-object-and-classes-in-salesforce
 
http://stackoverflow.com/questions/27367493/how-to-find-dependent-components-for-a-class-page-trigger-using-api-tooling-or
 
Hope this helps you!

If this helps you, please mark it as solved.

Thanks and Regards
Sandhya
vijaya kudupudivijaya kudupudi
Hi sandhya,

Thank you for your reply. I have tried the links which you have sent but, I have not get the result.