I'm trying to use the FormRecognizer service.
On FormRecognizerStudio I can retrieve the fields in the document and their value. But I can't manage to make it work in asp.net.
The result I get has a Content with all the data contained in the document, it also has Documents, Styles, Pages and Tables.
But the KeyValuePairs, Entities and Languages have their IsUndefined property set to true, and a count set to 0.
I'd like to get the KeyValuePairs.
Does anyone know why it has such a behaviour?
AzureKeyCredential credential = new AzureKeyCredential(key);
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
AnalyzeDocumentOperation operation = await client.StartAnalyzeDocumentAsync("prebuilt-invoice", File.OpenRead("fa1.png"), null);
AnalyzeResult result = operation.Value;