Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Qftw/YP2rqtAB7YWzMtpNM
Power Automate - Using Flows
Unanswered

update TOC in word document automatically online

Like (1) ShareShare
ReportReport
Posted on 26 Mar 2025 09:56:14 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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow
Loading started
Loading complete