Skip to main content
How to deploy Email alerts

Guidance on how to retrieve and deploy Email alerts by using the Workflow metadata type

Valerio Chang avatar
Written by Valerio Chang
Updated this week

Some users struggle to find email alerts in their Gearset comparisons, as their Metadata API name differs from what's seen in the Salesforce UI.

What metadata type to select in the filter?

Email alerts are represented in the Metadata API as WorkflowAlert, which is a subcomponent of the Workflow metadata type.

In order to retrieve email alerts, include Workflow in your Gearset metadata filter, or select Workflow after choosing On-demand comparison.

You can use our Default comparison metadata filter, which already includes the Workflow metadata.

How do Email alerts look in the comparison results?

Once the comparison loads, you can then find email alerts under Workflow alert in your comparison results.
​
You can also click on Depends on to view the dependencies for each email alert.

Note that in this example, in order to see components the email alert Password_Reset_Custom_Alert depends on, we've added "Account" Custom object + Email template metadata types to the filter.

​

Where to find this change in the Salesforce org?

The Workflow alert retrieved in this example comparison is located in this Salesforce org under Process automation > Workflow Actions > Email Alerts.

Did this answer your question?