Skip to main content

Retain the original path and filename of an imported Document


QAID # 13414 Published

Question / Problem:

How can I retain the original path and filename of an imported Document?

Answer / Solution:

It is possible to capture the original filename of an imported file through the {First Page Original File Name} Capture Value. This Capture Value can be applied to a Document Index Field as a default value.

However, this Capture Value only provides the original filename and not the full path.

As noted in the online Capture Help provided with Capture:

{First Page Original File Name}

The original file name and extension of the first page of the document. The extension of image files is always “.tif.” Note that because the final extension of image files can be changed at release time, this name may not match the exact name of the released image. If the first page image file was not imported and the original file name has not been set via some other means, this value returns an empty string.

If the full path is desired, it is not possible to obtain this value through the use of an SBL-based script such as a Validation Script.

If using XML Auto Import or an Input Script, it would be possible to include the full path into a Document-level Index Field, though this would require that the Document be created during the import process, and not Recognition. It would also be possible to obtain this information through the use of a Custom Panel in the Scan module and store it appropriately into a Batch-, Document- or Page-level Custom Storage String.

Applies to: 

Product Version