Hello,
I have been working on trying to populate a complex Word template with data from several SharePoint lists, but am running into difficulty with repeating rows inside of a larger item. I'm not sure if this is a limitation within Word or Power Automate, but I think my issue is within Power Automate, so I am sharing all info. In Power Automate, the Populate a Word Template does not work within a For each loop or any other control. As long as the final file is a PDF, I do not have to use Word, if there is another option.
For a singular project, I can populate: Title (single line of text), Description (multiple lines of text), Product List (repeating rows of "Product" and "Status"), plus more of the same.
What I cannot do is repeat all the items listed above for multiple projects within the same Word doc: having Title, Description and Product List for Title1, Title2, etc.
Examples
| Can do | Can't Do |
Title 1 Description 1 Products Product A, Completed Product B, In process Product C, Not started | Title 1 Description 1 Products Product A, Completed Product B, In process Product C, Not started Title 2 Description 2 Products Product A, Completed Product B, Completed Product C, In process |
I have tried creating an HTML document then replacing the fields just like in Word, where [title] is replaced by TitleName - and this works until I need to repeat for all projects. I have also tried writing my own JSON (which has been validated), and it works again until the whole project needs to be repeated for all projects in the SharePoint list.
I'm not sure what specific information you all need to help. I have searched online for similar items and tried to modify Flows from Reza Dorrani , Laura Rogers and many more. Laura has a video on looping through a task list - which is great, but I need more than just the repeating rows and I need it all in one file, emails and not multiple files.
Thanks,
Cheryl