Word - Add Headers and Footers

Power Automate Connector: Encodian – Word

Overview

The 'Word - Add Headers and Footers' flow action sets the header and/or footer of the Microsoft Word document provided to the HTML provided.

The following file types are supported:

  • docx
  • dotx
  • doc
  • dot
  • docm
  • dotm
  • rtf

Example Flow

Please refer to the following article showcasing the 'Word - Add Headers and Footers' Power Automate action: 

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.

Parameters

The default 'Word - Add Headers and Footers' flow action parameters are detailed below:

  • File Content: The file content of the source Microsoft Word file
  • Header - All Pages: The HTML header to add to all pages
  • Footer - All Pages: The HTML footer to add to all pages
  • Section - Set the section(s) to add the headers/footers too. All, First or Last

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 - Add Headers and Footers' flow action parameters are detailed below:

  • Insert Mode: Specifies whether the supplied header/footer HTML replaces existing content or is prepended to it. Only applies when HTML is inserted using an 'All Pages' option.
  • Header - First Page: The HTML header to add to the first page
  • Header - Even Pages: The HTML header to add to all even pages
  • Header - Odd Pages: The HTML header to add to all odd pages
  • Footer - First Page: The HTML footer to add to the first page
  • Footer - Even Pages: The HTML footer to add to all even pages
  • Footer - Odd Pages: The HTML footer to add to all odd pages
  • Culture Name: This setting is used to set the culture for the document prior to conversion. Please refer to the Culture Names article for a list of supported cultures

Return Parameters

The 'Word - Add Headers and Footers' flow action returns the following data:

Action Specific Values

  • 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.

Example

The following HTML fragment will generate this example header:

<div style="padding: 20px 20px 20px 20px;">
<div style="float:left; width:50%; font-family:Helvetica Neue,Helvetica,Arial,sans-serif;">
<p style="margin: 5px; font-size: 10px">Encodian</p>
<p style="margin: 5px;font-size: 10px">Blythe Valley IC, Central Boulevard, Blythe Valley Business Park, Solihull, B90 8AJ</p>
<p style="margin: 5px; padding-bottom: 3px; font-size: 8px"><a href="https://www.encodian.com" target="_blank" style="color:#9F0DA3;">www.encodian.com</a></p>
<p style="margin: 5px; font-size: 8px; color:#999;">Commercial in Confidence</p>
<p style="margin: 5px; font-size: 8px; color:#999;">Encodian Solutions Ltd is registered in England and Wales No 10200243</p>
</div>
<div style="float:left; width:50%;">
<img style="float:right; max-width:100px; height:auto;" src="https://prod-cdn-general.azureedge.net/logos/icons/32x32t.png" />
</div>
</div>

Please note that our address has changed to 20 Wenlock Road, London N1 7GU. We are no longer at the Blythe Valley address.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk