Update Word Table Of Contents

Update Word Table Of Contents

Description

This action automatically updates the Table of Contents (TOC) in an existing Word (.docx) document.

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
Existing File ContentWord DOCXExisting Word File to update. Must be a file – Base64 string is not supported.✔️-

Output

ResponseTypeDescription
File responseDOCXThe updated Word file.
File response as stringStringThe file content as a string. This can be stored in a variable, saved to Dataverse, or passed to other actions that require the file content in string format.
MIME typeStringThe MIME type of the DOCX file
ExtensiondocxThe file extension (always docx)

Power Automate Examples

Update Word Table Of Contents

We use the OneDrive Get file content using path action to retrieve the Word document on the right, which already contains a Table of Contents. The output of this action is then used as the input in the Existing File Content field of the Update Word Table of Contents action.

Picture

💡

Looking for the response to this example? Scroll up to see the Output tab.

Known Limitations

⚠️
If you experienced other limitations please get in touch with us!