Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Taking a Power Query generated data table from CDS and inserting it into a Word document.

I have previously used the Excel Power Query transformation function to create a required table of data. This could be easily manually copied and pasted into a Word document (headers and content, as-is). However, I would like to automate this. Within Word I have previously worked Content Control fields and populated a template successfully with manually triggered data, so I am familiar with that process. However, I have not done this for tables before.


I'm now moving my data into a CDS table, and I'm looking to replicate that Power Query to create/update the same table in CDS, with a view to using Power Automate to grab that data table and insert it as a table in the Word document template.


Assuming that I have my data available in CDS, how do I reference my transformed PQ-generated table in my Power Automate flow and insert it into a specified place in the Word document?.


Any help would be greatly appreciated!. Thanks in advance 🙂

Dual Super User III
Dual Super User III

Re: Taking a Power Query generated data table from CDS and inserting it into a Word document.

Hi @GrafZahl 


Can you share more details on data that needs to be populated in Word? I have published this post on how to populate repeating control (basically a table with data from excel) that can be used for populating data from a cds table as well. 


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!


Frequent Visitor

Re: Taking a Power Query generated data table from CDS and inserting it into a Word document.

Hi yashag2255,


Thanks for the update - this looks very useful.


My requirements are pretty simple: the solution needs to create a table of data (like Insert/Table in Word) and insert it at a given point (referenced via Content Control in the Word doc, or some other method).

The table of data could be created by an SQL query, but at the moment I can get the table view of my data by running Power Query to transform the data. It literally just needs to paste that, as is. I don't want to link explicit SQL statements in my Word document - I've done this before and it's too messy. I want to be able to control what goes into the Word document by having a reference point (like a CC) and then whatever is linked to that gets pulled into the Word document at that point.


I hope this helps.


Helpful resources

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!


Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (8,229)