You need to sign in to do that
Don't have an account?
Subbu's
Need help to find WF Email Alert
Hello Everyone ,
We have a requirement to display the list of WF and WF actions in a VF page .
Also if any WF action is Email Alert we need to know the Email Template used for this alert.
Can any one help me to find this using apex code .. Which object i have to use to query my require things.
Thx in Advance ,
Hello,
To fetch list of workflows there is no table (object) which you can query. By using Matadata API we can retrieve workflows and workflow action but i doubt about which email template assigned in the workflow action, reason being we can query on Template for list of the email temlpates.
In Visulaforce using javascript you can retrive metadata API and show list of WF. For details please refer:
https://github.com/financialforcedev/apex-mdapi
http://salesforce.stackexchange.com/questions/7751/how-list-all-the-properties-of-validation-rules-through-metadata-api
http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_types_list.htm
All Answers
Hello,
To fetch list of workflows there is no table (object) which you can query. By using Matadata API we can retrieve workflows and workflow action but i doubt about which email template assigned in the workflow action, reason being we can query on Template for list of the email temlpates.
In Visulaforce using javascript you can retrive metadata API and show list of WF. For details please refer:
https://github.com/financialforcedev/apex-mdapi
http://salesforce.stackexchange.com/questions/7751/how-list-all-the-properties-of-validation-rules-through-metadata-api
http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_types_list.htm
@Vinita
Thx for your reply i will try to do that.