Skip to main content
Kofax

Get Batch Field Value

17509

QAID # 17509 Published

Question / Problem:

Get Batch Field Value

Answer / Solution:

The following function gives the value of a Kofax Capture Batch Field:

Public Function getBatchField(FieldName,ByVal pXDoc As CASCADELib.CscXDocument) as String
    Dim folder As CscXFolder
    Set folder = pXDoc.ParentFolder
    While Not folder.IsRootFolder
    Set folder = folder.ParentFolder
    Wend
    If folder.XValues.ItemExists("AC_FIELD_" & FieldName) Then
        getBatchField = folder.XValues.ItemByName("AC_FIELD_" & FieldName).Value
    Else
        getBatchField = ""
    End If
End Function

To get Batch properties (special values such as Batch Name), please see Scripting Help ¦ Applying Scripting ¦ Accessing Kofax Capture Data ¦ Batch Data.

Applies To:

Product Version Category
AXPRO 4.0 Script
AXPRO 4.5 Script
AXPRO 5.0 Script
AXPRO 5.5 Script