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.
stampcoin
24
RP-25090907-0
23
Michael E. Gernaey
15
Super User 2025 Season 1