Skip to main content
7 events
when toggle format what by license comment
Apr 30, 2014 at 18:40 vote accept Kirill Yunussov
Apr 30, 2014 at 16:50 comment added sfdcfox That's nifty. I can use that directly in the code I deleted, I suppose...
Apr 30, 2014 at 11:27 comment added Andrew Fawcett @luke.mcfarlane You can actually retrieve the Symbol Table as part of your first query, just include it as a field in the select, thus you will get a list back of all symbol tables for selected classes, SELECT ID, SymbolTable, NamespacePrefix FROM ApexClass WHERE NamespacePrefix ... Note that in the documentation it states that this results in a demand compile if things are not in the salesforce cache for example, if you get a timeout you can try again or i typically just ensure the user does a Compile All Classes before trying again from the Apex Class page.
Apr 30, 2014 at 11:22 comment added Andrew Fawcett @sfdcfox You might be interested in the Apex Tooling API, this blog has an example of querying the Symbol table using SOQL, the example is for a specific class but can be used to return multiple. andyinthecloud.com/2014/03/17/…
Apr 29, 2014 at 23:56 comment added luke.mcfarlane Yes, although it looks like one would need to do a separate callout for each ApexClass in order to retrieve all of the symbol tables. I wonder if there is a more efficient way of achieving this?
Apr 29, 2014 at 22:50 comment added sfdcfox I was toying with this too. I'm probably going to make it into a VF page... It's too useful not to.
Apr 29, 2014 at 22:20 history answered luke.mcfarlane CC BY-SA 3.0