+ Start a Discussion
tangotango 

Force.com Migration tool and Email templates

I was having difficulty with migrating email templates and finally figured out that it was not seeing any templates in folders.

I can move templates from the 'unfilled' 'folder just fine now.

I tried using the 'folder' type and many other variations for 'emailtemplate' with no sucess. There are no examples I can find for the syntax to migrate email templates and folders. Does anyone have a sample here?

Thanks

hisrinuhisrinu
Hi,

<types>
        <members>Seagate_SPA_Styles</members> // Folder Name
        <members>Seagate_SPA_Styles/approved-icon%2Epng.png</members> //Document in the folder
        <name>Document</name>
</types>
cogcog

hi Tango, I am trying to do the same. I couldn't even get the templates in the unfiled public templates. Ant comes back with 

 

[sf:retrieve] package.xml - Entity of type 'EmailTemplate' named 'TestTemplate' not found

 

 

Mypackage.xml:

 <?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">

<types>
        <members>TestTemplate</members>
        <name>EmailTemplate</name>
</types>

  <version>14.0</version>
</Package>

 

 

reatlimecoreatlimeco

Anyone ever figure this out.  I am having a similar issue with EmailTemplates not being retrieved.  Only the folder is retrieved.  (Note that they don't show up in my IDE either).

 

<?xml version="1.0" encoding="UTF-8" ?>
  <Package xmlns="http://soap.sforce.com/2006/04/metadata">
  <types>
  <members>coveredProductsController</members>
  <members>serviceContractExtension</members>
  <name>ApexClass</name>
  </types>
  <types>
  <members>CoveredProductsSerialNumbers</members>
  <name>ApexComponent</name>
  </types>
  <types>
  <members>LSGNASDEmailTemplates.LSG_Contract_Expiration_Temp</members>
  <members>LSGNASDEmailTemplates.LSG_Warranty_Expiration_Temp</members>
  <members>LSGNASDEmailTemplates.LSG_Service_Contract_Conf</members>
  <name>EmailTemplate</name>
  </types>
  <types>
  <members>SVMXC__Service_Contract__c.LSG_Contract_Notification</members>
  <name>WorkflowFieldUpdate</name>
  </types>
  <types>
  <members>SVMXC__Service_Contract__c.LSG_Service_Contract_Conf</members>
  <members>SVMXC__Service_Contract__c.LSG_Contract_Renewal_Notification</members>
  <members>SVMXC__Service_Contract__c.LSG_Warranty_Expiration_Notification</members>
  <name>WorkflowAlert</name>
  </types>
  <types>
  <members>SVMXC__Service_Contract__c.LSG Renewal Contract Notification</members>
  <members>SVMXC__Service_Contract__c.LSG Warranty Expiration Notification</members>
  <members>SVMXC__Service_Contract__c.LSG Service Contract Confirmation</members>
  <name>WorkflowRule</name>
  </types>
  <types>

 

Ant says success but emailTemplates aren't retrieved

RParkerRParker

I was having the same error trying to pull out of the Unfiled Public folder.  Once I found the folder name and added it before the template Unique Name it functioned correctly.

 

    <types>
                <members>unfiled$public/Standard_RMA_Email</members>
                <name>EmailTemplate</name>
    </types>
Ralph YozzoRalph Yozzo

If you try to create a email template and push the portal that references it, it will fail.

 

You need to push the email template first

 

Then, push the portal second.