In my power automate flow, I have 2 JSON arrays (1 for Part1, and 1 for Part2). I had experimented with keeping everything in one JSON array, but was not able to get the flow and template to work out as intended that way.
Please correct the table of contents according to the article
If you don't want to repeat the H1 heading you need to create a single table cell with transparent borders and put content that you want to repeat inside.
Anyway, If you keep the table of contents in the second document it will appear after the merging. Probably it's possible to avoid merging and combine these 2 templates into one template and then create the resulting docx file?