cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mcutchins
Resolver I
Resolver I

Word Template Generates but PDF Not Populating Data

I have successfully created a Word document populated with content from Dynamics with the "Populate a Microsoft Word template" action and stored said file on OneDrive.  My issue is when I use the "Convert Word Document to PDF" action the Dynamics content does not render.  Looking at the Word document on OneDrive I see the rendered template values.  I am using that rendered file within the Convert action step but when I open the PDF, it displays the template format not the populated Dynamics content.  Anyone experience something like this?

1 ACCEPTED SOLUTION

Accepted Solutions

My issue seems to be with the template generated by Dynamics.  When I create my own template (independent of Dynamics connection), the Word file is populated correctly even when downloaded.

View solution in original post

7 REPLIES 7
ChristianAbata
Community Champion
Community Champion

hi @mcutchins  please use convert file one drive action

 

convrt.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
v-litu-msft
Community Support
Community Support

Hi @mcutchins,

 

After Populate a Microsoft Word template, you should use the content of the Populate step to create a word file, then use the identifier of the word file to convert the content into PDF format, then use the return to create a PDF File:

Annotation 2020-05-27 162258.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @ChristianAbata and @v-litu-msft 

 

I changed it to "Convert file" and it still does not show the populated version.

 

flow.png

 

Word document on the left, PDF generated document on the right.

combo.png

please @mcutchins  in your populate filed add a expresion like this String('YourMailingLabel')



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

No luck @ChristianAbata .  It is like it doesn't get the content of the Plain Text control of the Word template.

Looking at this more closely, it appears the template to Word document is not correct!  The Word document that is generated shows the populated values only when viewing the Word document within the web browser.  When the Word document is downloaded, it looks exactly like the template.  So when the PDF conversion takes place, it is not seeing the populated/dynamic content to convert.  Very strange behavior; back to investigation and how to resolve this template to Word issue!

My issue seems to be with the template generated by Dynamics.  When I create my own template (independent of Dynamics connection), the Word file is populated correctly even when downloaded.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,996)