-
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
We can’t retrieve the specified metadata object: EmailTemplateFolder #1345
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. |
I created an email template + folder and I was able to retrieve them despite the warning message: |
This issue has been linked to a new work item: W-10385112 |
Thank you @maggiben for your answer. What you're getting here is the EmailTemplate itself, but not the metadata for the containing folder. If you do the same thing for a metadata being supported, let's say a report folder, you can see that in addition to the report itself, there is a metadata file for the report folder: This is what's missing here and prevent us to recreate a new scratch org without having to manually create the email template folder first. |
What I'm seeing is that EmailTemplate now has 2 potential parent types (EmailFolder, similar to ReportFolder which it's always had and now a new type called EmailTemplateFolder). Gotta figure out how to handle that possibility. |
@mshanemc looks like EmailFolder is for Classic Email Template, and EmailTemplateFolder for Lightning Email Template. I was able to retrieve it with a package.xml:
This gives me a I'm able to push to a new Scratch Org again, and folder is created correctly as a Lightning Email Template folder. |
This is quite a nasty problem. We're gonna get a response from the metadata owners before deciding how to fix it. Thanks for reporting, though! |
Summary
While saving a Lightning Email Template in a custom folder with
Folders and Enhanced Sharing
enabled, pulling changes displays the following warning:Being obedient, I'm filing a bug as requested ;-)
Not sure if this is a 100% issue with the CLI, if so is it something I could fix myself via a PR ? Or does it need any internal validation about the source format for this file (is it decomposed or not, file name etc) ?
Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
Folders and Enhanced Sharing
inSetup
/Lightning Email Templates
or ad the following setting to yourproject-scratch-def.json
file:Insert, create, or update template
button and selectSave as new template...
Select Folder
and thenNew Folder
Expected result
Email Template and Email Template Folder should be pulled.
Actual result
Only Email Template is pulled, and a warning is displayed about Email Template Folder:
System Information
Additional information
In case it's not easy to find, here is the button to click to save your Lightning Email Template:
The text was updated successfully, but these errors were encountered: