cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Barry_Francis
Level: Powered On

Convert Word to PDF - Word Can't Open Document

Hi, 

 

I am receiving the following error when attempting to convert a file from word to PDF:

(Dynamics 365 word document in the notes section is being used to create a file in OneDrive and then convert file/convert file using path is both failing)

Error.jpg

 

I have two other flows that have no issues with different word templates, so don't understand this issue.

 

Here is the flow edit:

Setup.jpg

 

Any help would be appreciated.

 

Regards,

Barry

1 REPLY 1
Community Support Team
Community Support Team

Re: Convert Word to PDF - Word Can't Open Document

Hi @Barry_Francis ,

 

Are you trying to save Note attachments to OneDrive for Business folder then convert them to PDF?

 

Please check the following flow configuration which is working properly.

 

Trigger the flow with When a record is created.

 

Add action Create file, select File Name and input the following code in the File content field:

base64ToBinary(triggerBody()?['documentbody'])

 

Then convert file using path and create a new PDF file.

 

Image for your reference.

1.PNG

 

Best regards,

Mabel

 

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

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 150 members 6,178 guests
Please welcome our newest community members: