Add Content To File Collection
  • 18 Sep 2024
  • 2 Minutes to read
  • Dark
    Light

Add Content To File Collection

  • Dark
    Light

Article summary

General

This type of action can be used to add content to a File Collection.

Properties

This type of action has the following properties:

Name

Description
File CollectionTheFile Collection the content shall be added to.
Content TypeThe type of content to add to the File Collection.

Report Document. If you select this content type, you can select a report document that has been created using a Create Report Document Action 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 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 to the file collection.

Read below for more information about individual content types.
Replace Existing Files With The Same NameIf 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 using a Create Report Document Action to the file collection. The following additional properties will be available:

Name

Description
ContentThe report document to add to the file collection.
File NameAn Expression that returns a 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 PathAn Expression that returns a 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 NameAn Expression that returns a 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 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
ContentThe File Collection 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 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
ContentThe File Collection whose content shall be zipped and then added to the specified file collection.
Has PasswordIf you enable this option you can specify a password to protected the ZIP file.
PasswordThe password with which to protect the ZIP file. This propert is only applicable if Has Password is enabled.
File NameAn Expression that returns a string that contains the file name that the added ZIP file shall have within the file collection.

Was this article helpful?