ImportDirectory
 
Description

Allows you to import all files in the directory whose name is contained in the ImportFieldOpApplyTo<N> field. Use ImportFieldOpParam<N> to specify the path to the location of this directory.

.

Note:

If some of the files in the directory contain fields that have the same name, only the first instance of these fields is imported. Fields that are subsequently imported overwrite any previously imported field of the same name. This also applies to the files' content fields.

You can specify how you want the ImportDirectory operation to overwrite and delete files by specifying these behaviors in front of the directory path in the ImportFieldOpParam<N> parameter in the format:


ImportFieldOpParam<N>=<overwrite_behavior>;<deletion_behavior>;<directory_path>


<overwrite_behavior>

Enter one of the following values to specify whether you want content fields to be overwritten:

0; Overwrite the value of the first content field with subsequently imported content fields.
1; Do not overwrite content field values with subsequently imported content fields. Content field values are appended to the existing content field value instead.
2; Do not overwrite any field values with subsequently imported fields. The newly imported field values are appended to the field value, separated with commas.
3; Do not overwrite content field values with subsequently imported content fields. Other field values are overwritten with newly imported values, unless the new field value is empty.


<deletion_behavior>

Enter one of the following values to specify whether you want the original files to be deleted after they have been imported:

0; Do not delete the file you are importing from when importing is complete.
1; Delete the file you are importing from when importing is complete.


<directory_path>

Enter the full path to the location from where the Import Module should import files.


Example

ImportFieldOpApplyTo0=MyField
ImportFieldOp0=ImportDirectory
ImportFieldOpParam0=C:\Directory

In this example, the Import Module reads the name of the directory from which it should import files from the MyField field. If this name is Files, it then imports the files from the directory C:\Directory\Files.


ImportFieldOpApplyTo0=MyField
ImportFieldOp0=ImportFile
ImportFieldOpParam0=1;1;C:\Directory\

In this example, the Import Module reads the name of the directory from which it should import files from the MyField field. If this name is Files, it then imports the files from the directory C:\Directory\Files. Content field values from prior import processes are not overwritten by subsequently imported values. The new values are appended to the existing imported content field values for all fields. When the source files have been imported, they are deleted.