cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
Resolver I

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

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!

Learn more from my blog

Power Automate Video Tutorials

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

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!

Learn more from my blog

Power Automate Video Tutorials

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (8,842)