You need to sign in to do that
Don't have an account?
harisripadmini v
How to access the fields of symbol table programmatically?
Using symbol table am able to fetch fields, external references etc of apex class. But, what if I want to access external references that are obtained from symbol table...
Can anyone suggest a way to do this
Can anyone suggest a way to do this
You can extract the SymbolTable (https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_symboltable.htm) from the field with the same name on ApexClassMember (https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apexclassmember.htm) or ApexTriggerMember. The externalReferences are directly accessible from the SymbolTable.
Refer this link
https://github.com/afawcett/apex-toolingapi
https://salesforce.stackexchange.com/questions/116165/symbol-table-from-apex-class
Thank you for the response!!
am retrieving symbol table for different classes.. Now, I need to fetch the external references of each class (Individual class) separately, Is there any chance of doing so using SymbolTable..