Scripted automatic folder creation

You can automatically create folders via script implementation. There are three events that are fired that you can use for the creation of folders:


An image showing the events that can be used for defining automatic foldering.

You can use script programming for those events to create and delete folders, and to reorder the documents in a batch. The script programming can be tested in the Project Builder Documents window or in Test Validation. For example, you may use the BeforeAutoFoldering event to skip foldering if a certain condition is fulfilled. You can use the DoFoldering event to create folders and to place the documents in those folders.

Note The DoFoldering event is fired once only. This means that if a batch or document is sent to Kofax Capture - Quality Control because of an error, the DoFoldering event is not fired again once the batch is resolved and sent for further processing.

To perform folder field extraction you can either use the above described events or the Folder_BeforeExtract and the <FolderFieldName>_BeforeExtract events that are executed after the foldering events.

For the folder field extraction events at first the event sequence of BeforeExtract and AfterExtract events for any folder in your batch is performed and its folder fields is performed. At last this sequence is performed for the root folder and any configured root folder fields.


An image showing the events that can be used for defining automatic foldering.
Tip As a tutorial, Kofax Transformation Modules offers two sample projects installed with Project Builder.