web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Populate a Microsoft W...
Power Automate
Unanswered

Populate a Microsoft Word Template with dynamic content

(0) ShareShare
ReportReport
Posted on by 149

Hello, I have a form created in PowerApps which collects various data. I would like to present this in a report, I have used the Populate a Microsoft Word Template in the past and was thinking of using it again however the difference this time is that my content is not fixed. Usually when I use the Populate a Microsoft Word Template I generate a 1 page "certificate" or other kinds of reports with static content.

 

In this particular case, I have 2 problems;

  1. I wish to show certain sections of the report based on form controls such as checkboxes (ex. if checkbox A is ticked show X section in the report, if checkbox A is not ticked skip this section)
  2. I have sections in my form which allow the user to add rows and input data as required (ex. The user will enter different tools used for a job, these can be 0, 1 or many) I use a collection and a separate list to achieve this and maintain the 1 to many relationship with the main list. How can I display this data using the Populate a Microsoft Word Template connector if I don't know how many placeholders I need in the template? I have added an example below from my form. 

lukegatt_0-1703228870603.png

Some google searches seem to be mentioning repeating content controls however I cant seem to find a good guide or comprehensive examples on how these work. Any help/feedback is appreciated.

 

If there other workaround to achieve this that would be great, I wish in the future Microsoft would implement a simple printing function for apps/forms. 

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @lukegatt 

     

    It’s quite a complex one but think of your sections as records in a collection. Then use the repeating control as you’ve suggested. 

    I’ve a video creating dynamic docs from Microsoft Forms, the data is dynamic, the data in the dynamic content is also dynamic in the form of tags and the sections are optional. 

    Create Dynamic Word Document with Power Automate & Microsoft Forms
    https://youtu.be/8PUFodSc5BY

     

    Cheers
    Damien

    Please take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts. Thanks

  • lukegatt Profile Picture
    149 on at

    Very interesting, I will sure try it out (when I get back from Christmas holidays) and let you know. Thank you. 

  • lukegatt Profile Picture
    149 on at

    Will definitely check it out, thanks!

  • lukegatt Profile Picture
    149 on at

    Hi Alex, 

     

    I am testing out the encodian connectors. So far the template generation+ conversion to PDF is working fine for me and conditional expressions. 

     

    I am now trying to test the repeating content/row generation. In the examples here https://support.encodian.com/hc/en-gb/articles/360020426438-Tables all the data is parsed manually, this is not good for me. 

     

    I have a main SP list with a PowerApp and users are allowed to enter rows of data at various stages, this data is saved to another list and linked via a field (foreign key to the main list, "Report ID")

     

    App Input Screen

    lukegatt_0-1706081423934.png

    List Data

    lukegatt_1-1706081460063.png

     

    How can I populate a table with rows in this scenario? For each report I am generating I will need to populate a table with the component data. 

     

    Thanks, 

     

    Luke. 

  • lukegatt Profile Picture
    149 on at

    I managed using arrays in PowerAutomate and passing back the data to the encodian connector. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 822

#3
Haque Profile Picture

Haque 482

Last 30 days Overall leaderboard