cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hardtime
Frequent Visitor

MS Word connector - Repeating content controls

In need of "printing" information from a powerapps portal built from some related tables. Decided to give the flowconnector "Populate a MS Word Template" a try but cant get past building a solution for this..   Its a table (called Comments) that include users comments, and one level of answeres to these comments. We've got two columns called CommentID and CommentOnID. For Comments on "top level" CommentOnID = null and for comments that are answeres to "top level" comments its CommentOnId equals the top comments CommentID. 

Now the problem, how do I get these threads of comments sorted and presented in the Word template? Tried first to filter those top comments by List Rows (CommentOnID eq '0')  storing the required content in an array and then ForeEach over results of that ^List Rows,  List rows from the same comment table but then when CommentOnID eq CommentID. Followed by a ForEach over the results from that table again saving the results to another array.  

Cant detect where the logic gap (i perhaps) is and Word is returning one blanc row for each comment...  spent waaay to many hours trying to get this fixed, help!! 🙂

1 REPLY 1
flaviatakushi
Community Support
Community Support

Hi @hardtime, basically you can add repeating control in Word Template and use 'Appent to array variable'  in Power Automate to add all comments into an array.

See this great tutorial for more details:

https://flow.microsoft.com/en-us/blog/intermediate-flow-of-the-week-create-pdf-invoices-using-word-t... 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,091)