Hello @Avni Bhatt
It looks like you need to interact with this as an index page when the field is a collection
you can follow this Example
Example: the following should result in PageIndex = 3, LineIndex = 7, WordIndex = 12 "#/analyzeResult/readResults/3/lines/7/words/12" from DocumentResult "#/readResults/3/lines/7/words/12" from PageResult
Maybe, you can try something like this:
foreach (AnalyzedDocument doc in result.Documents)
{
IReadOnlyDictionary<string, DocumentField> fields = doc.Fields;
string effectiveDate = fields["EffectiveDate"].Content;
if (fields.TryGetValue("Parties", out DocumentField partiesField) && partiesField.ValueType == DocumentFieldType.List)
{
var partiesList = new List<string>();
foreach (var party in partiesField.AsList())
{
if (party.ValueType == DocumentFieldType.String)
{
partiesList.Add(party.AsString());
}
}
// Now partiesList contains all the parties from the "Parties" field
// You can process this...
// And I don't know if parties is a sting list, but I'm assuming it is 😊
}
}
I hope this can help you 😊
Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.