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 / Populate a microsoft w...
Power Automate
Answered

Populate a microsoft word template: How to populate a row of data from SQL Stored Procedure.

(0) ShareShare
ReportReport
Posted on by 141

Hi, 

I have the Populate a Microsoft Word Template flow in Powe Automate. 

I'm able to get list of data from Execute Stored procedure (V2). 

 

I need your guidance with step how do I implement into row of data from Stored Procedure? 

Categories:
I have the same question (0)
  • spiderkzn Profile Picture
    141 on at

    By the way I know about this Populating a Word document with Microsoft Power Automate - Strategy 365 Limited 

    I need a list of data from SQL to implement into Word.

  • Verified answer
    rikdekoning Profile Picture
    281 on at

    I'm guessing you want to add that list of SQL data into a Word table?

    You should add a repeating table to Word then. You can do this by adding a two-row table to your document and set the headers (first row) statically.

    For the second row, you need to wrap it inside a Repeating Section Content Control (thought the Developer tab): just select the entire row and click on the Repeating Section Content Control button:

    rikdekoning_0-1657715509187.png

    By clicking Properties, you can set a Title to that Repeating Section, making it easier to identify from within Power Automate:

    rikdekoning_1-1657715603350.png

    To fill in your table cells, you need to select each cell individually and assign a Content Control to it (e.g. Plain Text):

    rikdekoning_2-1657715733146.png

    For each cell's Content Control, you can edit the properties as well, just as the Repeating Section, to make it easy to identify:

    rikdekoning_4-1657716232580.png

    You can add values to your Content Controls inside your flow:

    rikdekoning_7-1657716416713.png

    Or - in your case - build the JSON from the outcome of your SQL output, e.g.:

    [
     {
     "Text1": "Row 1 - Text 1",
     "Text2": "Row 1 - Text 2"
     },
     {
     "Text1": "Row 2 - Text 1",
     "Text2": "Row 2 - Text 2"
     }
    ]

    The Populate a word template action does not create the file. That's why I added the Create file action. This will create the file eventually:

    rikdekoning_8-1657716474343.png

     

  • spiderkzn Profile Picture
    141 on at

    Thank you rikdekoning. It working

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard