Skip to main content
Kofax

Kofax TotalAgility - Prevent the Scan Create New Job from creating a job with no documents

Applies to

  • TotalAgility 7.6
  • TotalAgility 7.7
  • TotalAgility 7.8

Scenario

In a Scan Create New Job (SCNJ) form it is possible to create a job even when no documents are scanned.

Solution

To do this you need to customise the behaviour of the Create new job actions as shown below.

clipboard_ea30d7bb1987a91ca26156d4819327183.png

The action dotnet_GetPageCount calls GetFolderFieldValue() to retrieve the number of documents in the folder.  This is shown below.  The folder system fields can be found in the SDK documentation

clipboard_e8d0cdff335945e869272429687e19ab5.png

Before and after ScanControlCreateJobUsingProcessType you need begin and end condition actions.  This will check if the PageCount returned from the above action is not 0.

clipboard_eaaa4bc0d8ed7964b433574b3742a5aac.png

As a result:

  • When no documents have been scanned, a job will not be created
  • When 1 or more documents have been scanned, a job will be created
  • Was this article helpful?