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 over a month ago

This guide will help you find Email Alerts in your comparison. It can be tricky, as their Metadata API name (which is what displays in a comparison) 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?