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 🙂


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!


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

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,958)