Lightning Email Templates cannot be deployed through a standard change set. Here we will see how to deploy a Lightning Email Template using the Metadata API and Visual Studio Code (VS Code).
First, run two queries to find out which folder the email template is in, and to get the developer name needed for retrieval.
Query to find the template's folder:
SELECT Id, Name, ParentId, DeveloperName FROM Folder
Query to find the developer name of the Lightning Email Template for retrieving purposes:
SELECT Id, Name, developerName, FolderName FROM EmailTemplate
Now use a package.xml file in the format below to retrieve the desired Lightning Email Template:
<Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>unfiled$public</members> <name>EmailTemplateFolder</name> </types> <types> <members>unfiled$public/Merrill_Salesforce_Feedback_ET_1693339645628</members> <name>EmailTemplate</name> </types> <version>54.0</version> </Package>
Note: In the example above, "unfiled$public" is the public folder name, and "Merrill_Salesforce_Feedback_ET_1693339645628" is the Lightning Email Template's developer name under that folder.
After retrieval, you get a zipped file containing the Lightning Email Template and its metadata.xml file.
Select the payload in VS Code and deploy it using a CLI command, or simply right-click the email template folder and deploy it directly.
000742641

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.