cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CLS720
Advocate I
Advocate I

Populate a Microsoft Word Template into SharePoint Document Library

I'm using the Populate a Microsoft Word Template action to create a word document. The next action in this workflow is the SharePoint Create a file action. This action uses the output from the Populate a Microsoft Word Template action in the File Content field of the Create a file action. However, after the flow has run, the document type created in the document library is not a Microsoft Word Document.

populateWordTemplate.jpgtemplateInLibary.jpg

Can anyone help me configure this workflow so that a Word Document is created within the SharePoint Document Library?

1 ACCEPTED SOLUTION

Accepted Solutions
Sunay
Power Automate
Power Automate

Try appending ".docx" to the filename ?

View solution in original post

6 REPLIES 6
Sunay
Power Automate
Power Automate

Try appending ".docx" to the filename ?

View solution in original post

GavinMc
Advocate I
Advocate I

Hi,

 

I have an issue in my step (see below). I'm pretty sure I've created the template elements using Quick Parts - Field - MergeField in Word, but any advise will be appreciated.

Capture.PNG

That fixed it- thank you!!

Were you able to open you file in microsoft word desktop version?

I think the problem was I was testing the same document over and over and it was being cached in Word. I renamed the file after it was created and it fixed the issue.

I'm in troube because if I open the merged Word file within Teams or Sharepoint, I can see the fields filled with data, but if I open it into the Desktop App I see only the placeholders without data. Also if I use the Flow function to send the Word file as an attachment, the file sent is empty of data. Can you help me? See below:

Immagine 2021-03-03 153054.png 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,491)