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.
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
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsThanks 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?
Hi @EricC ,
You can connect on-prem SQL database. Could you please take a screenshot of your flow?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsJoin digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
90 | |
50 | |
36 | |
30 | |
27 |
User | Count |
---|---|
75 | |
60 | |
50 | |
41 | |
38 |