web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

[Power Automate] Populate a Microsoft Word Template - Table of Content

(0) ShareShare
ReportReport
Posted on by

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.
At this point, I’m not finding any supported way to generate a document from a Word Template (.docx), insert headings dynamically, and end up with a correctly updated Table of Contents, either in the DOCX or in the final PDF.
Any guidance or working solutions would be greatly appreciated.
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#2
BillurSamdancioglu Profile Picture

BillurSamdancioglu 55 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans