Update Word Content Control

Update Word Content Control

Description

This action updates a specific content control inside an existing Word document (docx).

You specify which content control to update by its tag or title, and then provide the new value that should replace the current content inside that control.

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
Existing File Content Word DOCXExisting Word File to update. Must be a file – Base64 string is not supported.✔️-
NameStringTag or title of the content control which should be updated.✔️-
Value StringUpdated value of the content control.-

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 Content Control

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

In the Name field, you enter the tag or title of the content control you want to update.

In the Value field, you provide the new content that should replace the existing content inside that control.

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!