> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/document-ai/tasks/update-extracted-field.md).

# Update Extracted Field

This activity can update the value of a field in an Extraction Result. It cannot add new fields. The value can be a text or table. The activity is useful when all required fields in a document cannot be extracted using a single extractor. Fields, including tables can be extracted using multiple document extraction workflows and can be merged into one result using this activity. Only requirement is the Extraction Result must contain all the required fields with or without value.

### Input

* **Extraction Result** : [`ExtractionResult Variable`](/getting-started/rpa-studio/variables/activity-variables.md#extractionresult) <mark style="color:red;">`Required`</mark>\
  The `ExtractionResult` to update. It can be the output from a [`Run Extractor Activity`](/rpa-studio/document-ai/tasks/run-extractor.md) or the Data property of a [`Task Dependency`](/getting-started/rpa-studio/variables/activity-variables.md#taskdependency).<br>
* **Field Name** : [`String Argument`](/getting-started/rpa-studio/arguments.md) <mark style="color:red;">`Required`</mark>\
  The name of the Field to set the value. It must be a name of an already existing field.<br>
* **Value** : [`Object Argument`](/getting-started/rpa-studio/variables/user-defined-variables-1.md#objects) \
  The value to be set for the field. Can be empty to clear the value in the field.

{% hint style="info" %}

* To set a table as value for a field, the table must be a [`LineItemsResult`](/getting-started/rpa-studio/variables/activity-variables.md#lineitemsresult) object sourced from another `ExtractionResult` as it cannot be created in any other way.
* It is not possible to set the value of a cell in a table in an Extraction Result. Instead, the row which contains the target cell should be given as input in Extraction Result property with the column name as Field Name. This is possible because a table in an `ExtractionResult` is a `LineItemsResult` object and a row in a `LineItemsResult` is an `ExtractionResult` object
  {% endhint %}
