Hello everyone,
I’m trying to generate documents using a Word Template (.docx) in Power Automate, and I need the final document to include a Table of Contents (TOC) that is automatically updated based on the headings (Heading 1) that I send from the flow.
However, I’m running into several issues:
- When I send text that should appear as Heading 1, the Word template does not update the TOC.
- Even after converting the generated file to PDF, the TOC still shows outdated entries.
- I tried using HTML with
<h1>, but the Word Template does not convert these tags into Word heading styles. - I also tried several common suggestions from the community (Rich Text Content Controls, HTML-to-text conversions, etc.), but none of them cause the TOC to refresh automatically.

Report
All responses (
Answers (