web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Taking a Power Query g...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 2

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 🙂

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    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. https://www.bythedevs.com/post/how-to-populate-a-word-template-with-repeating-control 

     

    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!

     

  • GrafZahl Profile Picture
    2 on at

    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.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard