✅ Resolved! Microsoft Word Templates - Cannot insert a newline? Here is a workaround!

Hello guys!

Today I got stuck while working on what seemed like a simple scenario.
In my scenario, I listed Monday.com tables with deadlines, then filtered only those that occur within the next month.
After that, I decided to save the results using a Text Aggregator and Set Variable.
There was just one step left: save the result to a .docx file and upload it to OneDrive.

The difficulty is that I never know how much results/newlines I will get. I might get 1 or 15000.

On the first run, I noticed that all the text appeared as a single line — with no line breaks at all.
Neither {{newline}} nor <br> nor \n worked.
I couldn’t believe such a simple task would take me hours… but then I started to search and read:

and read:

and read:

and read again:

and again:

It was a disaster. The simplest operation ruined the whole scenario (and my life for today)! “Thanks” Microsoft for such a bug (read - “feature”).

:white_check_mark: SOLUTION:
Hours of reading and experimenting turned me to this:

Lets take a deeper look in each module:

  1. Get multiple variables + Iterator
  2. Iterator + Array Aggregator + Create JSON
  3. Create JSON




  4. OneDrive Download File + Microsoft word templates (Fill a document with batch of data)
  5. Your Template Example.docx file should look EXACTLY like this:
  6. That`s it! Try it!

P.S.: much thanks to the following users who assisted much: Mark_Poulton, Donald_Mitchell

2 Likes

Andrii, you are a genius! What a workaround.

1 Like

AMAZING! THANK u so much

Have you have a workaround for this ? Microsoft Word use CONDITIONAL inside LOOP or SECTION Fill a document with a batch of data

Hey Guys! I just made an in-depth tutorial on how to work with ‘Microsoft Word Templates’ in Make.com. It covers everything. Hope it helps!

https://www.youtube.com/watch?v=5KBflEHk2lE

1 Like

OMG, I spent 4 hours on this. Step 5 is crucial — you really have to pay attention to the WORD format! Thanks!!

Just found this extremely helpful. Thanks!

1 Like

Just discovered something really useful!

If you’re working with multiple variables that need to be replaced (not just one), here’s what you need to do:

Firstly your template should look like this:

  • Set up a separate iterator–array–aggregator combo for each variable.

  • The array aggregator setup stays exactly the same as in the original solution — even the key name (like Text1) doesn’t change.

  • The only tricky part is in the Word Template module: