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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow action to convert...
Power Automate
Unanswered

Flow action to convert Word to a PDF in a model driven app

(0) ShareShare
ReportReport
Posted on by 509

Afternoon

 

I have a model Driven form with a field where users can add a document to a record, the field name is 'Documents'. I have a flow with some approval actions. Upon approval I want to change a Word document and store it in either a SP library or One Drive. 

 

I've got the Convert action but it fails. I thought it would be a matter of adding the field name from my record to the convert action field?  I remember doing the same in SP a few months ago and having to have some other actions. I guess that after the file is converted it's a case of adding a 'Move File' action? Any guidance would be gratefully received! 

 

ConvertFile.png

Categories:
  • JohnAageAnderse Profile Picture
    1,986 on at

    Hello @darrenfloyd666 

     

    What exactly is in the Documents field (property) - usually a document/file would have the properties Filename and File content (or similar) and what you want to convert is the File content.

     

    Another important part is that your convert file action is working from OneDrive, so your document must be present on the OneDrive first.

     

    Try adding a Compose action after our trigger and add the Document field in it - that will allow you to see what is in there.

    Hope this helps you on the way 🙂

    Kind regards, John

  • sutekh Profile Picture
    509 on at

    Thanks @JohnAageAnderse . Looking at my fields again I noticed that I was pointing at the wrong field! Doh! 

     

    The actual field is called 'Add documents' - cr1b0_adddocument - which is attachment field where a user uploads files to the record. I can't find that field when I search for it in Create or Convert file actions. So my question now is how to convert that file to a PDF after it's been uploaded. I guess it's stored somewhere in the CDS?

  • JohnAageAnderse Profile Picture
    1,986 on at

    Hello @darrenfloyd666 

    I am not using CDS, so can't help with that. Hope someone knowledgable will reply. One thing though is that I usually use a Compose action to see what a property contains when I am unsure and that may also help you in this situation.

    Kind regards, John

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard