Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6849991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:04:09+00:00 2026-05-27T01:04:09+00:00

I am looking to retrieve all email templates using Force.com ant migration tool. I

  • 0

I am looking to retrieve all email templates using Force.com ant migration tool. I believe we can not have bulk retrieve for Email Templates, Reports etc.

Is there any way we can retrieve all email templates in one go without specifying each template name? I believe we can some custom implementation using Metadata API, but wondering if someone has already implemented custom ant task for it.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:04:09+00:00Added an answer on May 27, 2026 at 1:04 am

    Email Templates, Reports etc. are in folders, so you must provide the containingFolder attribute to the sf:bulkRetrieve task and you’ll get back all the items in that folder. For example:

    <sf:bulkRetrieve 
        username="${sf.username}" 
        password="${sf.password}" 
        serverurl="${sf.serverurl}" 
        retrieveTarget="retrieveUnpackaged" 
        metadataType="EmailTemplate"
        containingFolder="SalesTemplates"
    />
    

    To find the folder names themselves, you can query the Folder object and filter on the Type column for the metadata type you are interested in. For example:

    SELECT DeveloperName FROM Folder WHERE Type = 'Email'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to retrieve the latest two posts from a Blogger.com account that belongs
I am looking to extend jQuery so I can easily retrieve the tagName of
How do you retrieve selected text using Regex in C#? I am looking for
I am designing a python web app, where people can have an email sent
This regular expression is only returning one match. (I'm looking to retrieve all image
I am looking to retrieve all records which myDate is between the startDate and
I have recently started looking into using Azure but I'm having some issues getting
I have a complicated query I wrote and it did initially retrieve all the
In MySQL, how can I retrieve ALL rows in a table, starting from row
I am using Python and need to find and retrieve all character data between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.