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 Automate
Unanswered

EXCEL to word table

(0) ShareShare
ReportReport
Posted on by 8

Hello everyone, I want to use Power Automate locally to automatically fill in the content of my Excel into a Word table. How should I go about doing this?

Thank you.

I have the same question (0)
  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @herong0101 

     

    Could you please provide more details about your use case? Are you seeking to convert an Excel table into a Word format, or do you need to fill a Word table with data from an Excel file?

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     
  • herong0101 Profile Picture
    8 on at

    herong0101_0-1714442232266.pngherong0101_1-1714442245699.png

    Yes, I  need to fill a Word table with data from an Excel file. The example is above.
    Thank you very much.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @herong0101 

     

    Here you go!! It's interesting topic for me as well.

     

    My sample doc which i uploaded in my onedrive.

    Deenuji_0-1714446460413.png

     

    1. Launching Excel and reading data:

      • The code starts by launching Excel and opening an existing Excel file located at. For example: C:\\Boot\\Wordtemplate.xlsx.
      • It reads all the data from the Excel file into a variable named ExcelData.
    2. Converting data to JSON format:

      • A new variable named JsonVar is created as an empty object.
      • The data read from Excel (ExcelData) is stored as a property named 'Table' in the JsonVar object.
    3. Converting JSON data back to an object:

      • The JSON data stored in CustomObjectAsJson is converted back to a custom object using the Variables.ConvertJsonToCustomObject action.
      • The resulting custom object is stored in a variable named JsonAsCustomObject.
    4. Accessing specific data from the object:

      • The data from the 'Table' property of the JsonAsCustomObject is extracted and stored in a variable named JSONDATA.
    5. Populate a Microsoft word template:

    Invoke the word document which we want to fill and pass json data in contactsrow parameter.

     

    Deenuji_1-1714446601045.png

     

    Deenuji_2-1714446874736.png

     

     

    Output:

    Deenuji_3-1714446934568.png

     

     

    Hope it helps!!

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

  • herong0101 Profile Picture
    8 on at

    Thank you for your help! I still have two issues:

    1. I couldn't find the "Populate a Word Document Template" tool in my PA QQ. Is this tool available for free?

    2. I can't locate your OneDrive. Could you guide me on how to find it?

    Thanks!

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @herong0101 

     

    Could you please confirm what tool you are currently using and version details?

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • herong0101 Profile Picture
    8 on at

    herong0101_0-1714631462211.png

    I haven't signed up for any plans, and I'm not linked to OneDrive either.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    Hi @herong0101 ,

     

    Can you share some screenshot of your PAD like below(Scroll down full on your action panel)?

    Deenuji_0-1714632932402.png

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • herong0101 Profile Picture
    8 on at

    Previously, I didn't subscribe to a paid plan, so I couldn't use features marked with a diamond symbol. But now I can use these features! How should I set up my Word to run them.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @herong0101 

     

    Again I am pasting my above solution...

     

    My sample doc which i uploaded in my OneDrive(This document also attached for your reference - you modify as per your requirement and upload into your onedrive).

    Deenuji_0-1714926574238.png

     

    1. Launching Excel and reading data:

      • The code starts by launching Excel and opening an existing Excel file located at. For example: C:\\Boot\\Wordtemplate.xlsx.
      • It reads all the data from the Excel file into a variable named ExcelData.
    2. Converting data to JSON format:

      • A new variable named JsonVar is created as an empty object.
      • The data read from Excel (ExcelData) is stored as a property named 'Table' in the JsonVar object.
    3. Converting JSON data back to an object:

      • The JSON data stored in CustomObjectAsJson is converted back to a custom object using the Variables.ConvertJsonToCustomObject action.
      • The resulting custom object is stored in a variable named JsonAsCustomObject.
    4. Accessing specific data from the object:

      • The data from the 'Table' property of the JsonAsCustomObject is extracted and stored in a variable named JSONDATA.
    5. Populate a Microsoft word template:

    Invoke the word document which we want to fill and pass json data in contactsrow parameter.

     

    Deenuji_1-1714926573592.png

     

    Deenuji_2-1714926574052.png

    Output:

    Deenuji_3-1714926574237.png

     

    Hope it helps!!

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard