# Adding rows into a table

docMaker can add rows to your document's tables. It will add as many rows as you provide data in the JSON.

{% hint style="info" %}
The beauty of it, is that page numbers will increment automatically, and page breaks will be perfectly fitted !&#x20;
{% endhint %}

Example data :

&#x20;

```plaintext
{"orderLines": [
 {
   "item_name": "Shirt",
   "item_price": 88,
   "item_quantity" : 2
 },
 {
   "item_name": "Shoes",
   "item_price": 123
   "item_quantity" : 1
 },
 {
   "item_name": "Dress",
   "item_price": 345,
   "item_quantity" : 4
 }
]
}
```

&#x20;

<table data-header-hidden><thead><tr><th></th><th width="78.33333333333331"></th><th></th></tr></thead><tbody><tr><td><strong>Template</strong></td><td> </td><td><strong>Result</strong></td></tr><tr><td><img src="/files/EmOzMagKB6lafbD98AG7" alt=""></td><td><p><span data-gb-custom-inline data-tag="emoji" data-code="27a1">➡️</span></p><p> </p></td><td><img src="/files/Jwu6GJcJzs9vpEP7MKKa" alt="" data-size="original"></td></tr></tbody></table>

&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.docmaker.co/features/create-pdf-from-docx-template/build-your-docx-template/loops/adding-rows-into-a-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
