# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.visualyze.ai/rpa-studio/document-ai/tasks/update-extracted-field.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
