Skip to main content
Community site session details

Community site session details

Session Id : Rx7Bc98Y7robbxQzQnVxE0
Power Automate - General Discussion
Unanswered

Populate a Word Template with repeating section data using Power Apps

Like (0) ShareShare
ReportReport
Posted on 9 Mar 2022 00:48:13 by 2

My goal is to create a Power App that allows users to enter data, and then takes that data, populates a Word template, and saves the resulting document to a SharePoint list. I built a proof-of-concept and testing went fine. I created the original Word template with dropdown and plain text fields. The flow is pretty straightforward. It has three steps:

 

  1. Initiate Flow using PowerApps.
  2. Populate a Microsoft Word Template.
  3. Create file (in SharePoint).

I've now added repeating section controls to the template, but can't figure out how to add repeating section controls to the Canvas app and pass that user-entered data to the template.

 

I've looked everywhere and can't find a solution for this particular use case (every other solution I've found requires a data source other than direct entry via Power Apps). I'm not married to this way of doing things. Only requirements are that the entry form be Web-based and that the data ends up in a specific Word template.

 

Any help is much appreciated.

  • JATurner Profile Picture
    2 on 10 Mar 2022 at 22:21:08
    Re: Populate a Word Template with repeating section data using Power Apps

    I found some information on this page: Word Online (Business) - Connectors | Microsoft Docs. Of particular interest was this section:

     

    Once you have added a Repeating Section Content Control, the nested content controllers would show up in the Word connector action. You can click on the "Add new item" button to add a new row. If the number of rows you want is dynamic, then user should make a array of values and pass it into the repeat field. For example, a valid array for the above example would look like: [{"a": "value for row 1", "b": "value for row 1"}, {"a": "value for row 2", "b": "value for row 2"}] Here the keys of the objects are the titles of the nested content controllers. Hence, adding a unique title is necessary. This array can be easily constructed using the "Select" data operation by mapping the values of an array with data to the input array.

     

    I also found this link that speaks to arrays: Populate Word Template with nested (multilevel) Re... - Power Platform Community (microsoft.com)

     

    I've done some programming in the past, but I'm not a developer. How do I piece these two together to come up with a solution? Is it possible to piece them together to formulate a solution? Neither of them tells me how to add the repeating content section in Power Apps.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete