You need to sign in to do that
Don't have an account?
Querying and Apex Class
A colleague of mine, while creating an iOS app (for a proof of concept) which uses the zksForce library, found the following article about querying an Apex Class;
http://wiki.developerforce.com/page/Metadata_Query_Apex_Class
I've tried to search around this discussion board and through a web search but can't seem to find any further information around this article/feature (especially around the query on line 16 of the request).
I'm wondering if anyone has any further information about this feature, such as;
- how querying an apex class works (because the concept doesn't make sense to me)
- example apex code
- can you pass in parameters (or use a where clause), and if so, how to setup the code and query to do this
Thanks,
Nathan
You can query it like any other objects, see doc,
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_apexclass.htm
All Answers
You can query it like any other objects, see doc,
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_apexclass.htm
Thanks a lot Jia. I thought ApexClass was a generic "insert apex class name here" and you could invoke the methods of the class, rather than a database object that contains all of the details of the classes in the org.
Thanks again for clearing it up.