Hello @Tom Chow , I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue: How to extract table specific values (columns) in Document Intelligence Custom Extraction Model
Solution: To extract the table's column value the user found this way. Below is their sample code in C#:
foreach (DocumentField row in fieldValue.Value.AsList())
{
if (row.FieldType == DocumentFieldType.Dictionary)
{
var rowFields = row.Value.AsDictionary();
string columnName1 = rowFields.TryGetValue("columnName1", out DocumentField columnName1Field) ? columnName1Field.Content : "";
string columnName2 = rowFields.TryGetValue("columnName2", out DocumentField columnName2Field) ? columnName2Field.Content : "";
Console.WriteLine($" columnName1: {columnName1}");
Console.WriteLine($" columnName2: {columnName2}");
}
}
Thank you again for your time and patience throughout this issue.
Regards,
Vasavi
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.