How to build loop that generates subheaders?

Hi,

I am trying to achieve the following document

image

So there is general heading 1 title and under that i like to loop subchapters.

My template looks like this

image

And my JSON is this

image

But the output of the "Create DOXC from template" action in Flow is the following:

So it

  1. makes section breaks after match
  2. use whole template file as template for each matching names.

I need to have that 1. level header + content only once on my document and below that dynamically created 1.1., 1.2. , 1.3. ... etc.

How i could build template that have few general chapters like

1. Introduction

2. Our company

And after that dynamic content from JSON

3 x

3.1 xxxx

4. y

4.1 yyy

Another issue I am facing (this is related to the previous one I suppose)...

What I really try to do is to generate document having 1-3 main headers and under those 1-n subheaders and under every subheaders there should be dynamic tables having 1-n rows.

Like this (with 2 different template, clients and employees)

The end result should be like this

JSON I suppose is something like this

But is this doable with Plumsail Flow connector? Now it just loops the whole template.

Hello @pertila,

Please send the docx template and the flow’s screenshots to support@plumsail.com.

Best regards,
Petr Bushuev
Plumsail team

I sent JSON, template, endresult and screenshot of Flow to support.