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.
Email Templates, Reports etc. are in folders, so you must provide the
containingFolderattribute to thesf:bulkRetrievetask and you’ll get back all the items in that folder. For example:To find the folder names themselves, you can query the
Folderobject and filter on theTypecolumn for the metadata type you are interested in. For example: