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

Retrieving all Folder files for Documents. EmailTemplates etc via Metadata Star "*"

Hi,  I've pulled metadata from a sandbox and noted that when I specify the following for example for documents


Not all documents and folders are retrieved.  Is there a way to specify All documents and their folders should be pulled in the metadata without requiring for example to specify each folder name as follows?

<types> <members>MyDocumentFolder/MyDocumentName</members> <name>Document</name> </types>

Does "*" not work in this case/ Similarly for EmailTemplates, Letterheads and others....

Thanks in advance for any help/suggestions

Best Answer chosen by SalesRed
As you stated, this is because they are folder based and you have to specify the individual members like you have there.  It's unfortunate, but those do not support the wildcard matching.  The best way to do this is to first fetch the data from Salesforce and then build the package.xml from the listing.  You can see in the solenopsis [1] source code where it does some of the folder based processing.