I wanted to retrieve an Email Alert via the Ant Migration Tool. However, I could not find it in a Metadata Types Reference. I suppose it's hidden under some other name like many other SF Metadata Types - I just don't know which.

To make things more precise - pic related:

enter image description here

  • Look for WorkflowAlert Follow this link for more info: developer.salesforce.com/docs/atlas.en-us.api_meta.meta/…
    – Raj
    Jul 8 '19 at 15:43
  • @Raj you should consider fleshing that idea out (i.e. can't find a metadata type, go up a level or two and try to follow it down) and turning it into an answer.
    – Derek F
    Jul 8 '19 at 16:08
  • @Raj Agree with Derek, it worked. Funny thing is that I could define WorkflowAlert in a package.xml (it's not listed on a mentioned page of MD API docs). Jul 9 '19 at 8:33
  • @DerekF and notmyf4ulty Turning it to an answer, may be some up votes from you guys :). Thanks
    – Raj
    Jul 9 '19 at 15:44

You can retrieve it with "workflowAlert" metadatatype. You can find more info at this URL here Workflow Metadata Ref, you might want to scroll through to the section "WorkflowAlert" to see field references associated to it.



To retrieve WorkflowAlert with the Metadata API you need to make sure to include the object name before the alert name i.e Case.My_Alert or Account.Hello_World

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.