-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieving and deploying Nested Lightning Email Templates and Folders fails #2902
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
@amtrack - As always, excellent issue report! 🏆 This is a known server side bug. If you're willing, you can contact support and have them add your case to the existing internal work item: W-15633963. That will help prioritize a fix. If this helps, I think you can deploy using the full path of the email template. E.g.: |
We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on. |
@shetzel Thanks for your fast response! Do you know who can create and link Known Issues to the Metadata Coverage Report? |
@amtrack - a known issue is in the works. Typically, Customer Support handles this in tandem with the owning developer team. |
Summary
There are multiple issues with retrieving and deploying Nested Email Templates and Folders using the
sf
CLI:retrieving metadata using source tracking (
sf project retrieve start
) does not retrieve nested EmailTemplateFolder components:sf project retrieve start
level1
is retrievedlevel2
andlevel3
is not retrieveddeploying a nested EmailTemplate by Metadata API name fails:
sf project retrieve start --metadata EmailTemplate:level3/template_level3_1715081809012
sf project deploy start --metadata EmailTemplate:level3/template_level3_1715081809012
Note
This requires
Email > Lightning Email Templates > Folders and Enhanced Sharing
to be switched on.Given the following directory structure with 3 nested folders (
level1/level2/level3
) and one template in each level.Apparently different names are being used in the Metadata API /
SourceMember
Tooling API /FileResponse
:[1]: listing folders using
sf org list metadata -m EmailTemplateFolder
and listing templates in a folder e.g.sf org list metadata -m EmailTemplate --folder level3
[2]: query SourceMember records using
sf data query --use-tooling-api --query "SELECT MemberType, MemberName FROM SourceMember"
[3]: retrieve metadata with --json flag
sf project retrieve start --json --metadata xxx
# see.result.fileProperties
Steps To Reproduce
Tip
Or checkout the repositories for reproduction linked at the bottom
Email > Lightning Email Templates > Folders and Enhanced Sharing
sf project retrieve start
-> does not retrieve folders in level 2 and 3--metadata EmailTemplate:level3/template_level3_1715081809012
)Expected result
Actual result
System Information
Additional information
Repositories for reproduction:
The text was updated successfully, but these errors were encountered: