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 / Converting Word file t...
Power Automate
Unanswered

Converting Word file to PDF

(1) ShareShare
ReportReport
Posted on by 3,295

I gave up trying to convert a created word file in my share Point folder. But what I have so far is the word document populated with my template.

 

My question is?

 

Is possible to have a flow that check for a new file created in my Share Point Folder with extension *.docx and name file start with PO..... to be converted to PDF?

 

Sorry could be adding more stuff but I don't want to deal with the connector convert word to PDF.

 

Thanks in advance for any advice.

 

Regards

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,302 Most Valuable Professional on at

    @sajarac 

    What trigger do you want to use?

    If you use a SharePoint Get Files properties only action, you can use an OData filter that will only return files that meet your specification (let me know if you need an example).

    Can you explain further what you want to do after you find the files?

     

     

  • Sajarac Profile Picture
    3,295 on at

    Thank you very much for your response.

     

    Currently I have a flow that takes my JSON data from my PowerApps and using the Word Business I have populated a word template. after that the word generated file is saved in the Shared Documents in my Share Point site.

     

    What I would like is to have a copy of the same file in the same spot but a PDF version.

     

    In this topic you have take a look of my flow:

     

    https://powerusers.microsoft.com/t5/General-Power-Automate/Convert-word-to-PDF/td-p/601120

     

    thanks in advance

  • ScottShearer Profile Picture
    25,302 Most Valuable Professional on at

    @sajarac 

    When you say it's not working, does it generate an error?  If so, can you post the error?

     

  • Sajarac Profile Picture
    3,295 on at

    Hello,

     

    Yes it generates an error trying to generate the file in the Share Point Shared Documents.

     

    {
      "status"400,
      "message""There was an error accessing the file. Please try again or select a different file.\r\nclientRequestId: 08ecdade-030a-4a16-9826-************",
      "error": {
        "message""There was an error accessing the file. Please try again or select a different file."
      },
      "source""wordonlinebusiness-ce.azconn-ce.p.azurewebsites.net"
    }
  • Sajarac Profile Picture
    3,295 on at

    Hi there @ScottShearer 

     

    I have been playing for days and days without any luck.

     

    Would you mind to give me an advice here?

     

    I have my flow and I can produce my word document from a template, so far so good. My document is generated in the path / folder where I need it.

     

    I would like to create a PDF version of the same file same name same path, and I am going mental.

     

    Any idea please?

  • ScottShearer Profile Picture
    25,302 Most Valuable Professional on at

    @sajarac 

    Please post a screen shot of your Flow.

    As far as I know, you need to purchase a third party connector to convert a Word document to a PDF format.  The exception is if you save the file to OneDrive and use the OneDrive Convert file ation.

     

     

  • Sajarac Profile Picture
    3,295 on at

    Thank you very much for your prompt response. 

     

    I had my suspicions that the easy way was to use a third party company, I did it once trying the 30-day trial of plumsail connector and it was very easy, but with word business it is a pain in the neck.

     

    Thanks again for your responses. I guess I will convert those files manually.

     

    Regards,

  • bhumika Profile Picture
    4 on at

    For anyone who faces this issue in future, do try this

    Option 1 [using 'Name' dynamic content]:

     

    bhumika_0-1606407377885.png

     

    "Location": The SharePoint site

    "File": Provide the path from the "Documents" folder (or your Document Library location), until the file.

    For example, if the full path is "/Shared Documents/Documents/<FolderA>/<filename.docx>", then put it as:

    /FolderA/<"Name" dynamic content>

     

    Option 2 [using 'Path' dynamic content]:

     

    Web capture_26-11-2020_224031_india.flow.microsoft.com.jpeg

     

    "Location": The SharePoint site

    "File": replace(outputs('Save_the_file_in_SharePoint')?['body/Path'], '/Shared Documents', '')

     

    Option 2 is less error-prone so I'd prefer that!

     

    Hope this helps 🙂

     

    Discussion thread where I found the solution: 
    Re: Flow Action - Convert Word Document to PDF - Page 2 - Microsoft Tech Community

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 298 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 150 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 147 Super User 2026 Season 2

Last 30 days Overall leaderboard