ExtractionResult Class
ExtractionResult is a public class that represents an extraction result for a part of a document.
Definition
- Namespace:
UiPath.DocumentProcessing.Contracts.Results - Assembly:
UiPath.DocumentProcessing.Contracts
Description
A public class that represents an extraction result for a part of a document.
note
Starting with UiPath.DocumentProcessing.Contracts package v1.17, the ExtractionResult.FlattenFields() method has been marked as obsolete. This structure will be removed in the future. Support for sub-fields at value level is obsolete and table fields are now represented using a new data structure.
Members
Constructors
ExtractionResult() - Initializes a new instance of the ExtractionResult class with no arguments.
Methods
AsClassificationResult()- Returns aUiPath.DocumentProcessing.Contracts.Results.ClassificationResultgenerated using the information from theExtractionResultobject.AsDataSet(<bool>) - Returns aSystem.Data.DataSetcontaining multipleSystem.Data.DataTablein the.Tablescollection. This collection contains a table called Simple Fields, that contains all fields as columns and all reported values for a field as values in the table. If a field has no value in theExtractionResult, then no value is reported. If a table field has a value, it is reported as the stringtable, which is a marker of the fact that there is aDataTablewith the field name that contains column fields as columns, and values for each row as values in theDataTable.AsDataSet(<bool>, <bool>) - Returns aSystem.Data.DataSetcontaining multipleSystem.Data.DataTablein the.Tablescollection. This collection contains a table called Simple Fields, that contains all fields as columns and all reported values for a field as values in the table. If a field has no value in theExtractionResult, then no value is reported. If a table field has a value, it is reported as the stringtable, which is a marker of the fact that there is aDataTablewith the field name that contains column fields as columns, and values for each row as values in theDataTable.Deserialize(<string>) - A static method that returns a new instance of theExtractionResultclass with the contents serialized in the input string.EnumerateValues(System.Func<UiPath.DocumentProcessing.Contracts.Results.ResultsValue, <bool>) - Allows you to iterate over all values in the results document, including table cell values.FlattenFields(System.Func<UiPath.DocumentProcessing.Contracts.Results.ResultsDataPoint, <bool>) - Flattens the fields inUiPath.DocumentProcessing.Contracts.Results.ExtractionResult.ResultsDocumentand filters them based on the condition.warningThis method is obsolete.
GetDocumentType()- Returns a string containing theDocumentTypeIdof theExtractionResultobject.GetFields(System.Func<UiPath.DocumentProcessing.Contracts.Results.ResultsDataPoint, <bool>) - Filters the fields inUiPath.DocumentProcessing.Contracts.Results.ExtractionResult.ResultsDocumentthat satisfy the condition.GetField(<string>) - Returns the field with the specified field ID ornullif it doesn't exist.GetSimpleFieldValues(<string>) - Returns a list of UiPath.DocumentProcessing.Contracts.Results.SimpleFieldValue for the inputfieldId.GetTable(<string>) - Returns the table with the specified id or null if it doesn't exist.GetTableFieldValue(<string>, <int>) - Returns a UiPath.DocumentProcessing.Contracts.Results.TableFieldValue containing cell values for the requiredfieldId. By default, this field is set to 0.IsAnyFieldOrTableCellMissing()bool- Determines whether there is any data point or table cell which doesn't have values.noteOnly a single value for a table field is supported. The
valueIndexcan therefore only be set to 0.GetValueCount(<string>)- Returns an integer containing the number of values associated with the provided
fieldId.
- Returns an integer containing the number of values associated with the provided
Serialize()string- Returns a string containing the serialized representation of theExtractionResultobject.GetFieldValidatorNotes(<fieldId>)- Returns the field value containing validator notes with the specified field id, or null if it doesn't exist.
SetFieldValidatorNotes(<fieldId>,<validatorNote>) - Set the validator notes for the field with the specified field ID, if notes are activated for that field.GetFieldValidatorNotesInfo(<fieldId>)- Returns the validator notes info for the field with the specified field id, or null if it doesn't exist.
SetFieldValidatorNotesInfo(<fieldId>,<validatorNote>) - Set the validator notes for the field with the specified field ID, if notes are activated for that field.GetFieldValidatorNotesInfoByFieldName(<string>)- Returns the validator notes info for the field with the specified field name, or null if it doesn't exist.
SetFieldValidatorNotesInfoByFieldName(<string>,<validatorNote>) - Set the validator notes info for the field with the specified field name, if notes are activated for that field.
Properties
DocumentIdString- The name of the document for which the extraction results are reported.ExtractorPayloadsString- Additional information provided by extractors.ResultsDocumentUiPath.DocumentProcessing.Contracts.Results.ResultsDocument- The details of the classification and data extraction structure.ResultsVersionInt- The version of theExtractionResultreported for the document. Starts at 0 when automatic extraction is performed and should be increased by one each time the contents of the object are changed, for tracking purposes.