Extract Word Content Controls

Extract Word Content Controls

Description

This action is used to work with a Word document, specifically to extract or interact with content controls within the document.

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
FileWord FileThe Word document from which the content controls will be extracted or processed. Must be a file – Base64 string is not supported.✔️-
Search Tag StringA string representing a tag or identifier to search for within the content controls.✔️-
Search Title StringA string representing a title to search for within the content controls.✔️-

Output

ResponseTypeDescription
bodyObjectThe full JSON response containing an array of all extracted Word content controls under wordControls.
TitleStringThe title of the currently processed content control (used in loops or detailed views).
TypeStringThe type of the currently processed content control.
TagStringThe tag of the currently processed content control.
IdString or NumberThe unique ID of the currently processed content control.
LockString or NullIndicates if the content control is locked (empty if not locked).
ValueStringThe extracted value from the content control.
ItemObjectThe full object representing the currently processed content control.

Power Automate Examples

Extract Word Content Controls

We use the OneDrive Get file content using path action to retrieve a Word document. In this document, we add 3 content controls as examples. In the Extract Word Content Controls action, you can either extract all three controls or search for specific ones using the Tag or Title fields. This way, only the desired control is returned. In this case, we do not search and extract all three controls.

Thereafter, we use a Compose action to display the extracted information. Since there can be multiple outputs, an Apply to each loop is automatically applied.

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!