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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / update TOC in word doc...
Power Automate
Unanswered

update TOC in word document automatically online

(1) ShareShare
ReportReport
Posted on by 16

Hi All,

I need to format the table of contents (TOC) in multiple Word documents daily. I'm using Power Automate with OpenXML (C#) to add the TOC. However, the code is inserting a TOC but not update it automatically, as shown in the attached image.

The main requirement is:

If a TOC already exists, it should be updated.

If no TOC is present, it should be inserted.

Note: The solution must work online only.

Is there any other approach to achieve this?

Thanks,

Renjeesh.

Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at
    I am not sure this will do what you need, but it may give you an idea on how to do what you want. It is for populating a Word document without using the premium populate a Word template action. Based on your description, I don't think using a template would work for what you need. 
     
    Here is the link to the video by @DamoBird365 on YouTube: https://youtu.be/Qj8SIiGJRnc?si=gshM5KnwOiNdTKAb

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard