Just trying to understand your workflow.
Your initial post stated you wanted to incrementally add rows, which to me, means you want to add rows during one scenario run, then later add more rows, etc… Is that right?
Yes, when a client requests a document, as long as you have all the data you need to build all the rows, you could build the document on-demand.
With Google docs, when tables are involved, I think the easiest way is to build the document in HTML, then create a new documenat based on that HTML, then perhaps download the document as PDF.
For me, this is the easiest method and how I do it on my projects.
You could do something like this…
Create a document to be used as a template that looks the same except replace the entire table with {Table} like this:
Then, in your scenario, build an HTML table in Make using Iterator and Text Aggregator so that you end up with your data in an HTML table.
Use the Text Aggreagtor to build the repeatable parts of the HTML, like
<tr><td>rowXcol1</td><td>rowXcol2</td></td>rowXcol3</td><td>rowXcol4</td>
Separate each row with a New Line.
The text aggregator would return something like this.
<tr><td>row1col1</td><td>row1col2</td></td>row1col3</td><td>row1col4</td>
<tr><td>row2col1</td><td>row2col2</td></td>row2col3</td><td>row2col4</td>
<tr><td>row3col1</td><td>row3col2</td></td>row3col3</td><td>row3col4</td>
<tr><td>row4col1</td><td>row4col2</td></td>row4col3</td><td>row4col4</td>
You place <table>
tag and your table header row before the aggregated text then </table>
after it.
Within <table>
you can format the table how you like it (maybe use AI to help out here) and you can use formatting within the <td>
and <tr>
tags if you want too.
Finally, you download the template document as HTML using Google Drive module.
Inside the downloaded HTML, use replace()
to replace the {Table}
with your HTML, then create a new document using that HTML.
I know this was a lot but hope it makes sense and hope it helps!