Recently I'm working on building something for developers/administrators - a handy 100% force.com app allowing to search metadata. Currently this app allows you to quickly search (from sidebar) custom code components (Pages, Apex Classes, Components and Apex Triggers).
Now I'm trying to add feature to search workflows or validations or email templates or fields etc, but stuck with some apex limitations. There's no APEX or direct api (methods) to search(query) above components. What are the options here for me?
- Use Metadata WSDL, parse it as apex class and then use that to retrieve/search the necessary component list ??
Use Metadata REST API ??
Crawler in VF using JS (just a wild hacky thought, not even sure if this's possible)