Power Automate Connector: Encodian – Word
Overview
The 'Word - Insert Text' action for Power Automate enables text to be inserted at a specified location/element within the Microsoft Word document provided.
Input File Types
The following file types are supported:
- DOC
- DOT
- DOCM
- DOCX
- DOTM
- DOTX
Credit Count
This action consumes 1 credit per operation.
Note, different Encodian actions can consume different numbers of credits. Please always check the action-specific documentation and read What is an Encodian Action for a full description of how credits are consumed.
Default Options
The default 'Word - Insert Text' flow action parameters are detailed below, which are contextual based on the selected 'Search Type':
Search Type: Select to search for 'Text' or an 'Element' within the Word document
- Filename: The filename of the source Microsoft Word file, the file extension is mandatory: 'file.docx' and not 'file'.
- File Content: A Base64 encoded representation of the Word file to be processed.
- Text: Set the text to insert
- Placement: Set whether to append or prepend text
- Insertion Mode: Set whether to insert as a new paragraph or add to an existing element
- Search Text: Set the text to search for
- Is Expression: Set whether the 'Search Text' value is evaluated as a regular expression
- Instances: Set the instances of the element to insert the text into
Please refer to the Obtaining the 'File Contents' Parameter article for guidance on how to obtain the 'File Content' parameter ready to provide to an Encodian flow action.
Advanced Parameters
The advanced 'Word - Insert Text' flow action parameters are detailed below:
- Specific Instance: Set the instance of the element (by ID) to target when 'Instances' is set to 'Specific'
- Start Page: Set the page number to begin inserting text
- End Page: Set the page number to end inserting text
- Page Numbers: A comma separated list of page numbers for the inserted text: 1,2,3
- Font: The font name to be used on the 'Insert Text'. If the 'Font' is not set, it will inherit the current font
- Font - Colour: The font colour to apply to the inserted text, the default setting is 'Inherit'
- Font - Size: The font size to apply to the inserted text, the default setting is 'Inherit'
- Style - Background Color: The background color to be used on the 'Insert Text', the default setting is 'Inherit'
- Style - Bold: Set whether the 'Insert Text' is set to be 'Bold', the default is 'Inherit'
- Style - Italic: Set whether the 'Insert Text' is set to be 'Italic', the default is 'Inherit'
- Style - Double Strikethrough: Set whether the 'Insert Text' is 'Double-struck Through', the default is 'Inherit'
- Style - Strikethrough: Set whether the 'Insert Text' is 'Struck Through', the default is 'Inherit'
- Style - Subscript: Set whether the 'Insert Text' is 'Subscript', the default is 'Inherit'
- Style - Superscript: Set whether the 'Insert Text' is 'Superscript', the default is 'Inherit'
- Style - Underline: Set whether the 'Insert Text' should be 'Underlined', the default value is 'Inherit'
- Word Spacing: The word spacing to apply to the inserted text, the default setting is 'Inherit'
Return Parameters
The 'Word - Insert Text' flow action returns the following data.
Action Specific Return Values
- Filename - the Word document filename
- File Content - The processed Word document (Base64)
Standard Return Values
- OperationId - The unique ID assigned to this operation.
- HttpStatusCode - The HTTP Status code for the response.
- HttpStatusMessage - The HTTP Status message for the response.
- Errors - An array of error messages should an error occur.
- Operation Status - Indicates whether the operation has been completed, has been queued or has failed.
0 Comments