studio-web
latest
false
- Release notes
- Getting started
- For administrators
- RPA workflow projects
- Creating an RPA workflow from an idea
- Creating a project
- How to start an RPA workflow
- Managing project files and folders
- Connecting RPA workflows to your accounts
- Configuring activities
- Managing the activities in a project
- Passing values between activities
- Iterating through items
- Managing the data in a project
- Configuring a project to use your data
- Using file and folder resources
- App projects
- Agentic processes
- Agents
- Solutions - Preview
- API workflows - Preview
Common VB expressions for Validation Control

Studio Web User Guide
Last updated Aug 26, 2025
To return the extraction result object, currently rendered by the control:
- Using the Validation Control element
MainPage.ValidationControl.ExtractionResult
MainPage.ValidationControl.ExtractionResult -
Using the Validation Control variable
AppVariable.VarValidationControl.ExtractionResult
AppVariable.VarValidationControl.ExtractionResult
-
Getting the field value by field name:
AppVariable.VarValidationControl_MainPage.ExtractionResult.GetFieldByFieldName("Invoice Number").Values(0).Value
AppVariable.VarValidationControl_MainPage.ExtractionResult.GetFieldByFieldName("Invoice Number").Values(0).Value -
Getting the field value by field index:
AppVariable.VarValidationControl_MainPage.ExtractionResult.ResultsDocument.Fields(0).Values(0).Value
AppVariable.VarValidationControl_MainPage.ExtractionResult.ResultsDocument.Fields(0).Values(0).Value -
Getting the list of all field names displayed in the Validation Control
AppVariable.VarValidationControl.ExtractionResult.GetFields().Select(Function(f) f.FieldName)
AppVariable.VarValidationControl.ExtractionResult.GetFields().Select(Function(f) f.FieldName)
.GetDocumentType()
.GetField()
.GetFieldByFieldName()
.GetFields()
.GetFieldValidatorNotes()
.GetFieldValidatorNotesByFieldName()
.GetSimpleFieldValues()
.GetSimpleFieldValuesByFieldName()
.GetTable()
.GetTableByTableName()
.GetTableFieldValue()
.GetTableFieldValueByTableName()
.GetValueCount()
.GetValueCountByFieldName()
To inspect document types, fields, or display properties:
- Using the Validation Control element
MainPage.ValidationControl.Taxonomy
MainPage.ValidationControl.Taxonomy -
Using the Validation Control variable
AppVariable.VarValidationControl.Taxonomy
AppVariable.VarValidationControl.Taxonomy
- Getting the list of fields in a taxonomy and save it as a source for a dropdown control:
AppVariable.VarValidationControl_MainPage.Taxonomy.GetFields(VarValidationControl_MainPage.SelectedDocumentType).ToListSource
AppVariable.VarValidationControl_MainPage.Taxonomy.GetFields(VarValidationControl_MainPage.SelectedDocumentType).ToListSource
.GetFields()
To bind UI elements to the curently chosen document type:
- Using the Validation Control element
MainPage.ValidationControl.SelectedDocumentType
MainPage.ValidationControl.SelectedDocumentType -
Using the Validation Control variable
AppVariable.VarValidationControl.SelectedDocumentType
AppVariable.VarValidationControl.SelectedDocumentType
- Using the Validation Control element
MainPage.ValidationControl.SelectedField
MainPage.ValidationControl.SelectedField -
Using the Validation Control variable
AppVariable.VarValidationControl.SelectedField
AppVariable.VarValidationControl.SelectedField
You can further access
SelectedField
properties, such as .Field.FieldName
, .Field.FieldType
, or .Field.ValidatorNotes
.
For example:
-
Getting the selected field value:
You can further access selected field value properties, such asAppVariable.VarValidationControl_MainPage.SelectedField.Field.FieldValue
AppVariable.VarValidationControl_MainPage.SelectedField.Field.FieldValue.FieldValue.Value
,.FieldValue.Confidence
,.FieldValue.OperatorConfirmed
. -
Getting the selected field all values:
AppVariable.VarValidationControl_MainPage.SelectedField.Field.Values
AppVariable.VarValidationControl_MainPage.SelectedField.Field.Values -
Getting the selected field first value:
AppVariable.VarValidationControl_MainPage.SelectedField.Field.Values(0).Value
AppVariable.VarValidationControl_MainPage.SelectedField.Field.Values(0).Value -
Getting the selected field data type:
AppVariable.VarValidationControl_MainPage.SelectedField.Field.FieldType.ToString
AppVariable.VarValidationControl_MainPage.SelectedField.Field.FieldType.ToString -
Getting the selected field index:
AppVariable.VarValidationControl_MainPage.SelectedField.FieldValueIndex.ToString
AppVariable.VarValidationControl_MainPage.SelectedField.FieldValueIndex.ToString
To read Validation Control properties:
- Using the Validation Control element
MainPage.ValidationControl.<PROPERTY NAME>
MainPage.ValidationControl.<PROPERTY NAME> -
Using the Validation Control variable
Controls.MainPage.ValidationControl.<PROPERTY NAME>
Controls.MainPage.ValidationControl.<PROPERTY NAME>
-
Reading field value from a table
For example:AppVariable.VarValidationControl_MainPage.ExtractionResult.GetTableFieldValueByTableName(<TABLENAME>)(<COLUMN INDEX>)(<ROW INDEX>).Value
AppVariable.VarValidationControl_MainPage.ExtractionResult.GetTableFieldValueByTableName(<TABLENAME>)(<COLUMN INDEX>)(<ROW INDEX>).ValueAppVariable.VarValidationControl_MainPage.ExtractionResult.GetTableFieldValueByTable Name("Invoice Items")(0)(0).Value
AppVariable.VarValidationControl_MainPage.ExtractionResult.GetTableFieldValueByTable Name("Invoice Items")(0)(0).Value
- Using the Set Variable Value activity with the following expression in the Set value field
AppVariable.VarValidationControl_MainPage.Field("Invoice Items").Field("Description", 0).SetFocus
AppVariable.VarValidationControl_MainPage.Field("Invoice Items").Field("Description", 0).SetFocus
- Common VB expressions for Validation Control
- Getting the whole Extraction Result
- Getting the taxonomy used by the control
- Getting the selected document type, as String
- Getting the selected field object
- Getting the Validation Control properties
- Reading a field value from a table
- Setting focus on a table cell