[SalesForce] How to get list of all workflow rules using apex

How can I get list of all workflow rules using apex?
I want to retrieve names of all workflow rules using apex code.

Best Answer

I haven't done it myself, but I think you could call the metadata api from apex and than process the output.

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_workflow.htm

Related Topic