How to add queryfields to Items object on prebuilt-invoice layout

Brandon G 85 Reputation points
2024-11-19T21:40:51.7133333+00:00

I have reviewed the queryfield documentation and understand how to get query fields to work with a specific field that appears on the document once. However, I want the field to be added to the ITEMS object, because it repeats within that table. Copilot gives syntax that is invalid. I assume it is impossible but was looking for confirmation

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

1 answer

Sort by: Most helpful
  1. romungi-MSFT 47,531 Reputation points Microsoft Employee
    2024-11-20T12:20:29.74+00:00

    @Brandon G Query fields should allow you to extract the required fields in the response of the analyze operation along with the regular structure of the model that you are using. For example, a layout operation where I added 2 query fields Name and Remark provides them in the response in the fields object of the response.

    User's image

    If you are referring to altering the output structure, then I think that is not possible. The query fields are simply added to the fields object in the response.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    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.