function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Subbu'sSubbu'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 ,

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Vinita_SFDCVinita_SFDC

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

Vinita_SFDCVinita_SFDC

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

 

 

This was selected as the best answer
Subbu'sSubbu's

@Vinita

 

Thx for your reply i will try to do that.