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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,241)