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:
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.
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.
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2