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 / How to convert a docx ...
Power Automate
Answered

How to convert a docx file to PDF located on Sharepoint and send as an attachment

(1) ShareShare
ReportReport
Posted on by 49
Hi,
 
I have a flow which sends an email with a file as an attachment from Sharepoint. File has .docx extension which needs to be converted to pdf and attached to emails.
 
I'm looking to convert the file without saving the pdf on Sharepoint. There is a convert file connector which looks at OneDrive for files, I'm not keen on storing the files on OneDrive, looking for other options which could help me pick up the file from SP.
 
Steps include:
 
Manually Trigger a flow
List rows present in a table
Initialize variable
Condition (AKEB)
Get File content (Welcome Secondary)
Get file content (TOR Secondary)
Send an email V2 (Email Secondary)
Update a row (Update Secondary)
 
 
Thank you in advance.
 
Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at
     
    Onedrive action does supports of converting file type to another format , in your case from docx to pdf. So one approach would be to create the same file in sharepoint temporarily in onedrive and deleting it after the email has been sent by bot.
     
    see below how this can be done
     
    1. use get file content to get docx file content
     
    2. Use create file action to create the same file in onedrive in any temporary folder which you have created.
     
    3. Use convert file action to convert to pdf format
     
    4. Use send email action to send the pdf attachment like below 
     
     
    5. Next delete an file in onedrive which has been temporarily created.
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • Suggested answer
    CU30050649-1 Profile Picture
    49 on at
    Thank you.
     
    This was exactly what i was looking for.
     
    Thank you

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard