Looking to get Metadata for lightning email templates.
Here is what I have tried:
Retrieving from source the following package.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>AgentTemplates/TestTemplate</members>
<name>EmailTemplate</name>
</types>
<version>54.0</version>
</Package>
I have queried the EmailTemplate object and see no records related to my newly created Lightning Email templates.
I have looked at this related question: Metadata API - listmetadata() for EmailTemplates is empty
Which recommended the following:
MetadataService.ListMetadataQuery queryEmailFolder= new MetadataService.ListMetadataQuery();
// Define Folder Name ''
queryEmailFolder.folder = '';
// Set EmailFolder
queryEmailFolder.type_x = 'EmailFolder';
queries.add(queryEmailFolder);
MetadataService.FileProperties[] fileProperties = service.listMetadata(queries, 30);
But it's not clear what the data type of queries
is supposed to be?
I have read the article. https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_emailtemplate.htm
The only thing here I see is:
"Packaging isn’t supported for Lightning email templates"
Does this mean it's not possible to get the metadata for lightning email templates?