Skip to main content
Map Fields is typically the final Vantage activity in a UiPath workflow. It takes the Extracted Data from Get Results and binds individual fields to UiPath variables that downstream activities can use. You define the mapping in the Designer panel.

Activity properties

Map fields to UiPath variables

The Map Fields activity can only be used inside a configured Vantage Scope activity.

Before you map

At runtime, the Extracted Data property must receive the ExtractedData value from the DocumentResult that Get Results returned for the Document skill this Map Fields activity is configured for. Before passing the data to Map Fields, complete these checks:
  • Confirm the document’s Document skill matches the one configured in Map Fields. Use the ClassName property of the DocumentResult to identify the document type.
  • For ClassName to populate, configure class-to-skill mapping in the Extract activity of the Process skill. The class name must equal the Document skill name.
For more information about setting up the Extract activity, see Map Document skills to classes.

Map the fields

1

Set the credentials

On the Vantage Scope activity, set the Password or Client Secret property, depending on your authentication flow. This lets the connector retrieve the skill list. Once the workflow is configured, switch to the Secure Password or Secure Client Secret property. For more information, see Vantage Scope activity.
2

Load the available skills

Open the Map Fields activity in the Designer panel. Click the button to the right of the Skill Name drop-down list.
3

Select a Document skill

Expand the Skill Name drop-down list and select the Document skill whose extracted field values must be saved to UiPath variables.
You can only choose a Document skill.
4

Refresh the field tree

Click the Refresh button. A field tree appears in the Vantage Extracted Field column.
5

Map a field to a UiPath variable

Expand the tree and click the Plus button next to a field you want to map. In the UiPath Variable column, a UiPath variable name and type appear. By default the variable name matches the Vantage field name, but you can change it if required.
Ensure that the UiPath variable names specified in the Map Fields activity match the Variables Naming Convention configured in your UiPath process. If variable names do not follow the naming rules, they are displayed with a warning symbol in the UiPath variable list. For more about Variables Naming Convention, see the UiPath documentation.
Map Fields activity showing the Vantage Extracted Field tree and UiPath Variable column
6

Map the remaining fields

Repeat the previous step for the other fields you need to map. You can specify already-existing UiPath variables. In that case, make sure the variable type matches the one recommended in the Field type mapping table.
7

Apply the mapping

After mapping your document fields to UiPath variables, click Apply to save the changes. When the Map Fields activity is called at runtime, variable values are filled in with the extracted data.
The specified UiPath variables are created in the Sequence closest to the Map Fields activity (for example, in a Flowchart). The Skill Name parameter accepts a UiPath String variable. Selecting a Document skill from the drop-down writes the new value to the variable. Expressions and references to other variables are not supported.

Field type mapping

The following table shows what type of UiPath variable corresponds to each ABBYY Vantage field type:
Repeating leaf fields (such as Text) and table columns map to String[]. Repeatable groups, including those nested inside other repeatable groups, map to FieldList[]. Within a repeatable group, you can also map individual child fields to simple types.
Map Fields activity showing the Vantage Extracted Field tree and UiPath Variable column with mapped groups and repeatable fields

GroupItem

GroupItem is a structure containing one instance of some repeating object (field or group of fields).

FieldList

FieldList is a structure that corresponds to a field or group of fields (repeating fields or repeating groups with the same name). It contains the values of those fields or groups, and multiple instances are possible.
The sample process provides an example of using a variable with the FieldList[] type (the Description column of the LineItems table is displayed in the log messages).
For more information about the Group field type, see Group field.