How can I 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.

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

Attribution
Source : Link , Question Author : Manisha , Answer Author : Samuel De Rycke

Leave a Comment