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 / Re Converting File to ...
Power Automate
Suggested Answer

Re Converting File to PDF Flow

(0) ShareShare
ReportReport
Posted on by
I am building a Leave Request Form Automation and need to be able to convert my populated word Template to PDF, so I can attach the pdf to email.
 
However, I cannot get the Convert Word doc to PDF to pull the newest file from SharePoint or One Drive, it will only allow me to pull a static file, even when using dynamic content.
 
Is there a Work around for this, so I can successfully pull the newest form saved in the SharePoint or One Drive rather than the static file? 
Screenshot 2026-07-30 123142.png
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,489 Super User 2026 Season 1 on at
     
    Use OneDrive for Business as a temporary conversion staging area because its Convert file action reliably accepts the Id returned by the previous Create file step.
     
    1. When a new response is submitted (Forms trigger) - unchanged.
    2. Get response details - unchanged.
    3. Populate a Microsoft Word template (Word Online Business) - unchanged, points at your template in SharePoint or OneDrive.
    4. Create file in the final SharePoint library - saves the populated .docx where your users expect it. Use the File Content dynamic content from step 3.
    5. Create file in OneDrive for Business (temporary folder) - same File Content, same file name. This is the copy you will convert.
    6. Delay - 30 to 60 seconds (raise if you have large templates or throttling).
    7. Convert file (OneDrive for Business, not Word Online) -  File = Id output of step 5, Target type = PDF. This is the action that "just works" with dynamic content.
    8. Create file in SharePoint (PDF library) -  File Name = <same base name>.pdf, File Content = the output of step
    9. .Delete file (OneDrive) - pass the Id from step 5 to keep the temp folder clean.
    10. Send email with the SharePoint PDF as attachment - the goal you started with.
     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 280 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 160

#3
Haque Profile Picture

Haque 142

Last 30 days Overall leaderboard