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 / Nested Repeater contro...
Power Automate
Unanswered

Nested Repeater control in MS word template and populate data from Power platform

(0) ShareShare
ReportReport
Posted on by 14

Hi everyone,

I'm trying to generate a Word document using Power Automate that includes nested repeaters. My data structure includes parent items with multiple child items, and I need to display this in a Word template. Here is an example of my data:

[
{
"Serial Number": "1",
"Title": "1",
"Subtopics": [
{
"KategorieSubtopics": "1",
"TitleSubtopics": "Title 1",
"SerialNumberSubtopics": "Serial 1"
}
]
},
{
"Serial Number": "2",
"Title": "2",
"Subtopics": [
{
"KategorieSubtopics": "2",
"TitleSubtopics": "Title 2",
"SerialNumberSubtopics": "Serial 2"
}
]
}
]

I can display the parent data (Serial Number and Title) in the Word template, but I'm struggling to display the nested child data (KategorieSubtopics, TitleSubtopics, SerialNumberSubtopics). I've tried using nested tables, but the data doesn't seem to populate correctly.

Has anyone successfully implemented nested repeaters in a Word template using Power Automate? Any advice or examples would be greatly appreciated!

Thanks in advance!

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @ppsao ,

     

    If you are using Apply to each to populate value of array to word template, you can try this in KategorieSubtopics field.

    items('Apply_to_each')?['Subtopics/KategorieSubtopics']

    Same logic for TitleSubtopics field and SerialNumberSubtopics field.

     

    Best regards,

    Rimmon

  • ppsao Profile Picture
    14 on at

    HI @v-mengmli-msft 

    My problem is - the second level of data i not being populated in the output word file, even with the hard coded values. Withe one level of repeater control, I am able to display data.

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @ppsao ,

     

    The provided expression is to get the second level of data. I am just assuming that the Populate Word Template is inside Apply to each because I don't know your flow. Maybe you can provide some screenshots, it will help us understand the problem and provide the solution.😀

     

     

    Best regards,

    Rimmon

     

  • ppsao Profile Picture
    14 on at

    Hi @v-mengmli-msft ,

    Sure, here are the screenshots.

    Word template is not inside Apply to each loop. I just have one template stored in document library.

    This is the template with nested repeater - Parent and child. Parent repeater has 1 test box and Child repeater has 2 text boxes.

    ppsao_0-1716803271952.png

    When I populate this template in power automate, Ideally I should get two repeating section with 2 "Add new Item" buttons, one for parent and one for child. But I ma getting only one button. It should allow me to add multiple child items under one parent.

     

    ppsao_1-1716803601368.png

     

    I tried to prepare Array of objects also in the required format and assign that variable in this section, but I am still not able to get data in second repeating section

  • ppsao Profile Picture
    14 on at

    Thanks @AlexEncodian for suggetion.

    I ended up using just one repeating table, creating one JSON array for parent and child both and removing the serial number from the child items so it looks like nested in the word. It worked in my case since I have the similar structure for parent and child data.

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
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard