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: