Extract line item fields with query fields

Maher 21 Reputation points
2025-04-15T14:53:33.92+00:00

I've seen a few posts that says its possible to extract line item fields with query fields. I've tried this and at best it will only extract a single field value and not extract the value for every line.

If there is a way to extract additional line item fields with query fields for each line please let me know how ideally with an example.

Thanks!

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,100 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Gowtham CP 6,020 Reputation points Volunteer Moderator
    2025-04-15T15:06:44.43+00:00

    Hey Maher ,

    Thanks for the question on Microsoft Q&A!

    I got that query fields aren’t pulling all line items for you ,just one value. They’re not great for tables. For invoices, use the prebuilt-invoice model; it grabs all line items like item name, quantity, and price automatically. For other docs, try the prebuilt-layout model to get table data, then sort it out.

    Example: A table in a receipt might have “Item,” “Qty,” “Cost” as headers, with rows like “Bread, 2, $4.00” and “Milk, 1, $3.00.” You’d make those into {"Item": "Bread", "Qty": "2", "Cost": "4.00"} for each.

    Hope this helps! If it works, please upvote and mark as accepted. Thanks!

    References:

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.