Generate Word documents in your flows

The new Word Online (Business) connector lets you work with Word files in document libraries supported by Microsoft Graph: OneDrive for Business, SharePoint Sites, and Office 365 Groups. Today there are two actions:

  • Convert Word Document to PDF: Gets a PDF version of the selected file.
  • Populate a Microsoft Word template: Reads a Microsoft Word template to then fill the template fields with selected dynamic values to generate a Word document.

You can build Word templates on either Windows or your Mac by enabling the Developer tab. Once you have enabled that tab, under the Controls section you can add any number of text content controls into your document. Use the control Properties to give the control a friendly name that you will use in the flow. Once you are done creating your Word document, save it to one of the above document library locations.

Now, you can start building the flow. Add the Populate a Microsoft Word template action to your flow, and when you select that file you should see a list of all the controls that you added. Populate these fields with the values (probably from Dynamic content) you’ll want to be in the new Word document. Finally, you can then use the outputs of the action and send an email, save the document to another location, or any number of other actions.

Note that at this time, repeating content controls such as those used in tables are not supported.