Use BeforeDocumentImport to get the EML/MSG/ZIP filename
You can use the BeforeDocumentImport function to get the EML/MSG/ZIP filename.
To use this script, do the following:
- Extract KCSImportScriptingSample.zip (default: C:\Program Files (x86)\Kofax\KIC-ED\KCPlugIn\ScriptSample) to a local directory.
- Open Additional settings tab in KC Plug-In Destination configuration. For Advanced batch/document script path option, select Browse and locate the IDocument2_FR6371.cs file.
- Select Create document per attachment in Import mappings tab.
- In the Kofax Capture batch class configuration, create a document index field to get the MSG/EML/ZIP file name.
- Restart the KC Plug-in service.
Additional Settings
To get the name of the email in the ExtractedFrom field, do the following:
- Configure the Import trigger file option in the Advanced folder import settings.
- For destinations you do not want to import the trigger file into Kofax Capture, configure the trigger file extension (for example, .trg) in Skip importing files with formats.