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
Super User
Super User

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

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



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?

Super User
Super User

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



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 299 members 5,519 guests
Please welcome our newest community members: