cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EricC
Level 8

Using the Microsoft Word Template Connector with a SQL Table

Hi Everyone,

 

I created a pretty simple flow using Powerapps, word template and word to pdf connectors. It works great! It got me thinking though, rather than say having the user enter the information in Powerapps and then passing that thru to the flow 1 at a time, would it be possible to pull the data from a SQL table in bulk.

 

For example, a SQL table containsthe client's information such as: name, address, email, account manager etc. 

 

We run a query based on the input from the powerapp for all records associated with the account manager and retrieve all those records, would we be able to populate a word template with each record from the table and populate x amount of the word template with each document containing that client's info?

 

I imagine the answer is yes, I'm just having a bit of trouble getting started.

3 REPLIES 3
abm
Level 10

Re: Using the Microsoft Word Template Connector with a SQL Table

Hi @EricC ,

 

Once you retreived the SQL records construct a flow action "for each loop" then add the flow step called "Populate a Microsoft flow template". Here you need a one drive or sharepoint to retrieve your word templates. Once you set the location as SharePoint or One Drive then map the rest of values  (Document Library and  File) from your SQL query.

 

Thanks

 

 

EricC
Level 8

Re: Using the Microsoft Word Template Connector with a SQL Table

Thanks for your reply. I went to tinker with it and realized that you cannot execute a sql query with the on-prem data gateway connection unfortunately.

 

I'll be looking into other ways to achieve this.

 

Would it be feasible to retrieve the sql table in powerapps as a gallery/collectionand then loop thru the rows in the gallery/collection to populate the microsoft word template for each row?

abm
Level 10

Re: Using the Microsoft Word Template Connector with a SQL Table

Hi @EricC ,

 

You can connect on-prem SQL database. Could you please take a screenshot of your flow?

 

Thanks

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 68 members 4,466 guests
Please welcome our newest community members: