--- title: "Add Content To File Collection" slug: "add-content-to-file-collection" updated: 2024-08-23T09:54:30Z published: 2024-08-23T09:54:30Z canonical: "help.mail-and-deploy.com/add-content-to-file-collection" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mail-and-deploy.com/llms.txt > Use this file to discover all available pages before exploring further. # Add Content To File Collection ### General This type of action can be used to add content to a [File Collection](/release35/docs/file-collections). ### Properties This type of action has the following properties: | Name | Description | | --- | --- | | File Collection | The [File Collection](/release35/docs/file-collections) the content shall be added to. | | Content Type | The type of content to add to the [File Collection](/release35/docs/file-collections). *Report Document*. If you select this content type, you can select a report document that has been created using a [Create Report Document Action](/release35/docs/create-report-document) to be added to the file collection. *External File*. If you select this option, you can add an external file to the file collection. *File Collection*. If you select this option, you can add the contents of another [File Collection](/release35/docs/file-collections) to the file collection. *Zipped File Collection*. If you select this option, you can add a ZIP file that contains all files from another [File Collection](/release35/docs/file-collections) to the file collection. Read below for more information about individual content types. | | Replace Existing Files With The Same Name | If enabled, files with the same name already existing in the file collection will be replaced by the new files. | ### Content Types #### Report Document If you set *Content Type* to *Report Document* you can add a report document that has been created previously within the same [Task](/release35/docs/tasks) using a [Create Report Document Action](/release35/docs/create-report-document) to the file collection. The following additional properties will be available: | Name | Description | | --- | --- | | Content | The report document to add to the file collection. | | File Name | An [Expression](/release35/docs/introduction-to-mail-and-deploy-expressions) that returns a [String](/release35/docs/string) that contains the file name that the added report document shall have within the file collection. | #### External File If you set *Content Type* to *External File* you can add an external file to the file collection. The following additional properties will be available: | Name | Description | | --- | --- | | Content Path | An [Expression](/release35/docs/introduction-to-mail-and-deploy-expressions) that returns a [String](/release35/docs/string) that contains the path to the external file to be added to the file collection. This can either be a local or UNC file path. | | File Name | An [Expression](/release35/docs/introduction-to-mail-and-deploy-expressions) that returns a [String](/release35/docs/string) that contains the file name that the added external file shall have within the file collection. | #### File Collection If you set *Content Type* to *File Collection* you can add the contents of another [File Collection](/release35/docs/file-collections) to the specified file collection. NOTE The content of the file collection from which content is added to the specified file collection will not be changed and still remain in that file collection. The following additional properties will be available: | Name | Description | | --- | --- | | Content | The [File Collection](/release35/docs/file-collections) whose content shall be added to the specified file collection. | #### Zipped File Collection If you set *Content Type* to *Zipped File Collection* you can specify another [File Collection](/release35/docs/file-collections) which will be zipped to a single ZIP file and then be added to the specified file collection. The following additional properties will be available: | Name | Description | | --- | --- | | Content | The [File Collection](/release35/docs/file-collections) whose content shall be zipped and then added to the specified file collection. | | Has Password | If you enable this option you can specify a password to protected the ZIP file. | | Password | The password with which to protect the ZIP file. This propert is only applicable if Has Password is enabled. | | File Name | An [Expression](/release35/docs/introduction-to-mail-and-deploy-expressions) that returns a string that contains the file name that the added ZIP file shall have within the file collection. |