Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 9hV9bkmWCqf/OV96O5P0+y
Power Automate - General Discussion
Answered

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

Like (0) ShareShare
ReportReport
Posted on 17 Apr 2024 13:42:55 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

 

 
 

 

 



  • gstredny Profile Picture
    134 on 18 Apr 2024 at 13:07:15
    Re: Dynamically Populate values from multiple rows in a sharepoint to a Word Document

    Great thank you, I will try that

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,318 Most Valuable Professional on 18 Apr 2024 at 00:40:40
    Re: Dynamically Populate values from multiple rows in a sharepoint to a Word Document

    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 17 Apr 2024 at 21:28:34
    Re: Dynamically Populate values from multiple rows in a sharepoint to a Word Document

    This is a Sharepoint List

  • SudeepGhatakNZ Profile Picture
    14,318 Most Valuable Professional on 17 Apr 2024 at 21:25:22
    Re: Dynamically Populate values from multiple rows in a sharepoint to a Word Document

    Okay let me try

     

     

  • gstredny Profile Picture
    134 on 17 Apr 2024 at 21:17:01
    Re: Dynamically Populate values from multiple rows in a sharepoint to a Word Document

    My source data looks like this:

    gstredny_0-1713388614231.png

     

  • SudeepGhatakNZ Profile Picture
    14,318 Most Valuable Professional on 17 Apr 2024 at 21:10:47
    Re: Dynamically Populate values from multiple rows in a sharepoint to a Word Document

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

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,763 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard