Generating Google Doc from HTML and adding CSS styling

I’m generating a Google Doc receipt. To add the line items, I use the Create a Document module, because I have a variable number of items. I use a table to style them.
For now it’s very basic. Something like this
<tr><td style="text-align: left;">{{6.name}}</td><td style="text-align: right;">-€{{formatNumber(6.money_amount; 2)}}</td></tr>

I added some inline styling, but some characters where parsed by Make. How do I style the table?

You’ll have to use the Make an API Call module to hit the documents.batchUpdate endpoint,

with UpdateTableColumnPropertiesRequest and UpdateTableRowStyleRequest respectively, once per row/column.

Before you can do that you’ll need to call “Get Content of a Document” to get the table row/column ranges.

Example

Here is an example of how your scenario could look like:
Screenshot_2025-04-28_200434

This is just an example. Your final solution may or may not look like this depending on your requirements and actual data.

Hope this helps! Let me know if there are any further questions or issues.

@samliew