function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
alfo72alfo72 

Having a Problem deploying EmailFolder Metadata into a Spring21 Sandbox

Hi.

Using SFDX and Unlocked Packages, came to install a package today into a Preview Sandbox but it fails and the failed metadata is to do with EmailFolder.  Narrowed down by doing line by line deployment.

The below works in a non-preview sandbox created today but not in a one created before the window.  Obviously a change but can't find any notes on it.

Metadata is :

<?xml version="1.0" encoding="UTF-8"?>
<emailFolder xmlns="http://soap.sforce.com/2006/04/metadata">
    <accessType>Public</accessType>
    <fullName>XXX_CommunityTemplates</fullName>
    <publicFolderAccess>ReadOnly</publicFolderAccess>
    <name>CommunityTemplates</name>
</emailFolder>

alfo72alfo72
The answer is written in my subject.

With a V50 Sandbox it didn't seem to matter that I had written emailFolder as the tag.

With V51 it does need to be EmailFolder.
ShirishaShirisha (Salesforce Developers) 
Hi Alfo,

Greetings!

Since you are obeserving the difference because of the release,you can log a case with the salesforce.com support and they will help you further on this one.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri