Modify Document Data item (Modern, Studio Web)

Hi everyone,

I am using Extract Document Data in Studio Web, and getting the desired result back. Almost :slight_smile:

The document (Purchase Order) contains a list/table of spare parts for cars, but as an example, one row is missing the Product ID. I look that product ID up in a Parts Catalog using Context Grounding - no problem.

…but how do I modify the Document Data? I want to of course add the Product ID to the empty field in the Purchase Order.

Anyone?

Cheers,
Jeppe

Try this
ExtractionResults.ResultsDocument.Fields(0).Values(0).Value = “Your Value”

Just use valid index for your fields

But isn’t that Classic DU in Studio you’re referring to, and not Modern in Studio Web?

-Jeppe

Hi @adi.mehare,
I appreciate that it is an old post.
I am encountering an issue where a “Read” from “ExtractionResults” works fine, but an “Update” to the same reference throws an exception.

Are you able to provide any reference to documentation about working with the “ExtractionResults” structure?

Thanks, Dave

Hey @DavidMartin,

You can check this documentation on the ExtractionResults Class - https://docs.uipath.com/activities/other/latest/document-understanding/extraction-result-class

Hope this will help you out.

Hi @Karan_Rautela,

Thanks I appreciate the reply. I had found that document.

As it is in the format classes, it is probably my lack of knowledge about how to use the information as execution in Studio.

My particular challenge is working with an “Array” / “Table” that has been extracted within the ExtractionResults.

Hopefully UiPath will provide a range of activities for handling the structure in future releases.

Hey @DavidMartin,

If you want to work with the table(s) extracted in ExtractionResults then you can use the ‘Export Extraction Results’ activity under the package UiPath.IntelligentOCR.Activities. It exports the extraction result as a DataSet(collection of tables), then you can access any table with the syntax like-

table1(DataTable) = datasetVar.Tables(“TableName”)

Then you can manipulate it as we do with the DataTable.

Hi @Karan_Rautela ,

Thanks for the response.

I have used the Export which has been helpful to confirm the values.

For this particular use case, I need to reformat the dates so that when the ExtractedResults are shown in Action Center they are acceptable to the users.

From what I have discovered so far, there is an “Export” but no “Import”. Have I missed something?