Populate Word Document

Overview

The 'Populate Word Document' Power Automate action enables you to populate a word document (DOCX) with data derived from a JSON document.

Example Flows

Please refer to the following example solutions:

Populate Word Document Syntax

Please refer to these articles providing detailed guidance and examples for configuring the input word document and JSON document (data): Template Syntax for Populate Word Document

Default Parameters

The default 'Populate Word Document' flow action parameters are detailed below:

  • File Content: The Microsoft Word Document (DOCX) to populate.
  • Document Data: The JSON data to populate the document with.

mceclip1.png

Please refer to the Obtaining the 'File Contents' Parameter article for guidance on how to obtain a 'File Content' parameter ready to provide to an Encodian flow action.

Advanced Parameters

The advanced 'Populate Word Document' Power Automate action parameters are detailed below:

  • 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
  • JSON Parse Mode: Sets the JSON parsing mode for simple values (null, boolean, number, integer, and string).
    • Standard: JSON simple values are determined upon parsing of their string representations. For example, '{ "example": "69" }' is determined as an integer in this mode.
    • Strict: JSON simple values are determined directly from the JSON notation. For example, '{ "example": "69" }' is determined as an string in this mode.
  • Date Time Format: Sets a specific format for parsing DateTime values. Set the value to 'disable' to stop all automatic DateTime parsing.
  • Population Options: Sets the behaviour of the population engine.
    • Default: Sets default options.
    • AllowMissingMembers: Missing object members will be treated as null literals. This option affects only access to instance object members and extension methods. If this option is not set, an exception is thrown when a missing object member is encountered.
    • ClearEmptyParagraphs: Configures the population engine to remove empty paragraphs post removal of template syntax tags.
    • InlineErrors: Configures the population engine to add inline template syntax error messages into the output document. If this option is not set, the population engine throws an exception when a syntax error is encountered.

mceclip0.png

Return Parameters

The 'Populate Word Document' flow action returns the following data. 

Action Specific Return Values

  • File Content - The populated 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 completed, has been queued or has failed.
Have more questions? Submit a request

2 Comments

Please sign in to leave a comment.
Powered by Zendesk