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
Karan KeharKaran Kehar 

Migrate Lightning Email Templates

Hi All,

I am trying to migrate Lightning Email Templates from one sandbox to another through Data Loader. I am able to retrieve the templates by filtering on the Folder ID. When I am trying to insert the templates in another sandbox by updating the folder ID, I get the below error.
 
"Templates used by other resources must remain in a folder other than your Personal template folder, and cannot be deleted or deactivated.: Folder ID"

Seems like it is due to the AccessType property on Folder which is set as Hidden. Not sure how to create a public lightning email template folder.

Any help on this would be appreciated.!
 
AbhishekAbhishek (Salesforce Developers) 
https://help.salesforce.com/articleView?id=000320209&language=en_US&type=1&mode=1

Your query is answered in the above Offical document check it.

For your reference, you can check this too (https://trailblazers.salesforce.com/answers?id=9063A000000E3QRQA0).

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.