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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / A better way than Exce...
Power Automate
Unanswered

A better way than Excel table to add items to Word template

(0) ShareShare
ReportReport
Posted on by 23

I have a Flow that adds sales items to an Excel table and that table gets added to a Word template.

It's problematic, messages e.g. file locked for editing and the table doesn't always update in the template.  I also need to clear the table to reuse the file.

 

There must be a better way. Can you help please?

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @Shell  unfortunally this is a kind of bug that Excel has arround was microsoft flow, I tought was solved but you can try opening a microsoft support case.

     

    See could be solved for the ms enginering team.

  • Shell Profile Picture
    23 on at

    Is there a different way to do it that doesn't involve Excel?

  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    shure @Shell  you can use sharepoint List

  • Shell Profile Picture
    23 on at

    Already using SharePoint lists.  I want the workflow to add information to a content type template ( I can do that successfully using SharePoint designer) but I also need to add repeating data. 

    I could update an excel table and input that into the template but it doesn't always work.  I then need to clear the rows from the table so it can be used again, that's when I get the file locked message.

     

    I can create an HTML table but how do I get that into the Word document?

  • TesDA Profile Picture
    611 on at

    You can use a variable, thats how I'm doing it. This is from sql, but the same would work from sharepoint.

     

    step1.jpg

    step2.jpg

  • TesDA Profile Picture
    611 on at

    Just note, something I've learned the hard way. Sharepoint needs time to think. Make sure to add plenty of delays in there so that the flow doesn't move faster then the time it takes for sharepoint to process your request.

  • Paulie78 Profile Picture
    8,422 Moderator on at

    @Shell I would do it the way that @TesDA  has explained. Instead of putting your figures into Excel, just load them into a JSON array and use that as your source of repeating data for the Word template. 

     

    The Excel connector is so fussy, which you can work around with a do until loop, but it can take ages for the file to free up. 

  • Shell Profile Picture
    23 on at

    Thanks @TesDA 

    That's the approach I'm taking but unfortunately we don't have the premium action 'Populate Microsoft Word template' 😢

     

    I have the arrays set up but how to get that into the content-type template in the document library

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard