[SalesForce] How to deploy documents from one sandbox to another sandbox

I am deploying a customer portal. Right now I am going from a development sandbox to a staging sandbox.

I have CSS, PDF, PNG, and HTML files in a folder in Documents.

In my package.xml I tried:

<types>
        <members>*</members>
        <name>Document</name>
</types>

That didn't work
Do I need to download all those files to a folder in Documents in the staging sandbox? Or is there a way to migrate the folder from one sandbox to another?

Thank you,
Haya

Best Answer

I think all CSS, PDF, PNG, and HTML files in Documents are treated as Data/records and so can not be deployed from one sandbox to another sandbox. It is different from your static resources(which is meta data) which can be be deployed from one org to another.

So in short you will need to download your data and then again upload it in target org.

Related Topic