Create action with custom extraction results

Hi
I would like to use Action Center, more specifically Document Validation Actions but instead of using Document Understandig extraction results I would like to use a thir party extraction engine.

As I can see I have to work with UiPath.DocumentProcessing.Contracts.Results.ExtractionResult but this is a very complex object and up to now my tests haven’t been successful.

Is there an easy or assisted way to populate extraction results?

1 Like

Hello @dokumentor!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

I can’t find a way to insert custom results to ExtractionResult object. I am trying the following. After Data Extraction Scope (used to extract one field) I include an Invoke Code activity in order to insert values. Here is my code where I am trying to insert hardcoded values to the other 2 fields:

The problem is that after Invoke Code activity, no value is added.

Does anyone know how to do this? @Ioana_Gligan @Sergiu.Wittenberger?

Finally did it! I needed to properly define and initialize ResultsValue arrays before assigning

This example works fine (from a previously initialized ExtractionResult variable). Invoke activity is used after Extraction Scope activity to insert “custom” values.

image

I got a little bit confused when documentation indicated list instead of array:


https://docs.uipath.com/document-understanding/docs/results-data-point-class

Hope it helps!

8 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.