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

Community site session details

Session Id : Uhl5QNz210zoCTi+cTrLud
Power Automate - Building Flows
Unanswered

Stored procedure query to Word Document template

Like (0) ShareShare
ReportReport
Posted on 24 Sep 2019 01:17:41 by

I have a stored procedure that executes with a parameter of Batch_ID.  Inside of flow I am able to successfully run everything and then in the output body I am able to see all associated values of that Batch_ID.  The query Joins multiple tables to print a Roast_Tag for the specific Batch_ID.  However, nothing is getting passed to my Word Template.  Eventually this will be triggered through PowerApps once the Batch is created.  Please see attached pictures.

 

My Flow:
Roast_Tag_Flow.PNG

 

 

This is my word template:

 

Roast_Tag_Template.PNG

 

This is the failed PDF after conversion:  No values were passed.

 

Roast_Tag_PDF (failed passing of values).PNG

  • Community Power Platform Member Profile Picture
    on 24 Sep 2019 at 18:01:29
    Re: Stored procedure query to Word Document template

    @yashag2255 Thanks for the reply.  Unfortunately when I tried that way my flow kept failing (The field ID is invalid).  I went back to the Populate Word Template step and put in the below for each Item, just changing the last part to match the template tag.

     

    first(body('Execute_stored_procedure_(V2)')?['resultsets']?['Table1'])?['Blend_Number']

    After doing this it worked fine.  Thank you for the reply.

     

  • yashag2255 Profile Picture
    24,647 Super User 2024 Season 1 on 24 Sep 2019 at 06:25:19
    Re: Stored procedure query to Word Document template

    Hi @Anonymous 

     

    The reason why you are not getting the data there is probably because you are converting the base template and not the actual populated template. Convert to PDF in word is a premium connector and premium action and required the file to be present somewhere in the document library so that you can refer to it by selecting the folder icon. There is a convert to PDF action in OneDrive for business connector and I have used it as shown below:fgh1.PNG

     

    fgh2.PNG

    I have tested this and it works fine. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete