I used Tooling API to retrieve WorkflowAlert Metadata in order to send email alert by using Messaging.SingleEmailMessage in Apex code. Is there any way I can just retrieve it and then I trigger it in Apex code instead creating Messaging.SingleEmailMessage to put all the data from WorkflowAlert Metadata? Thank you so much :)
3 comments

Create VisualWorkflow (Flow to send request to tooling Api,Collect Response in Apex Defined Class and Send Email ) .But This flow has to be launched on click of button .