web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamically Populate v...
Power Automate
Answered

Dynamically Populate values from multiple rows in a sharepoint to a Word Document

(0) ShareShare
ReportReport
Posted on by 134

Hello,

 

I am creating invoices that could have multiple rows with multiple parts:

gstredny_0-1713361097050.png



I am trying to populate this into a table for each invoice for a Word Document, but not sure how to do it for multiple rows?

gstredny_1-1713361143104.png

I typically just have one row and do this:

gstredny_2-1713361182345.png

 

I was told to craft an array and apply to each but a bit stuck on how to Append to array variables:

gstredny_5-1713361315648.png

 

 
 

 

 



Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Can you provide me the source data. I'll see if I can build sample for you

     

  • gstredny Profile Picture
    134 on at

    My source data looks like this:

    gstredny_0-1713388614231.png

     

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Okay let me try

     

     

  • gstredny Profile Picture
    134 on at

    This is a Sharepoint List

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    My list

     

    SudeepGhatakNZ_0-1713390318801.png

    My template 

     

    Title 

    Parts And Labor 

    Item No 

    <<foreach [contract in datum]>><<[contract.Title]>> 

    <<[contract. PartsAndLabor 

    ]>> 

    <<[contract.itemNumber]>><</foreach>> 

    SudeepGhatakNZ_0-1713400683541.png

     

     

    The flow:

     

    I have simply added the output of the array variable in a compose and passed it as a data object to Encodian

    SudeepGhatakNZ_1-1713400786451.png

     

    Final Output

    SudeepGhatakNZ_2-1713400835327.png

     

     

  • gstredny Profile Picture
    134 on at

    Great thank you, I will try that

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard