"Document type is: " + autoClassification.Item(0).DocumentTypeId - Doing something wrong?

Hi

Trying to get the DocumentTypeId from the ClassificationResults using Classify Document Scope and using

"Document type is: " + autoClassification.Item(0).DocumentTypeId

getting error - Item is not a member of System.Array?

Any help appreciated.
Davendra

@davendra, Can you please provide more detail? Which activity are you using? What is DataType of autoClassification?

Cheers

This will help.

@davendra, Looks good to me.

  1. Please ensure DataType of autoClassification variable is IReadOnlyList< ClassificationResult >
  2. Ensure autoClassification variable is not NULL
    AND
  3. Alternatively, Can you try the following line and share results?

"Document type is: " + autoClassification(0).DocumentTypeId

Cheers

Magic ! Thanks alot ! Duh !!

1 Like