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 / Convert word document ...
Power Automate
Unanswered

Convert word document to PDF and attach PDF to draft email from shared mailbox

(0) ShareShare
ReportReport
Posted on by 2
I would be grateful for anyone's advice on how to do this.
 
I would like to be able to select a word document in OneDrive, convert it to a PDF with the same filename, save it to a OneDrive folder and attach it to a draft email from a shared mailbox.  I would then manually input the email address and send the emails.  How do I achieve this?
 
Thanks for any help.
Categories:
I have the same question (0)
  • Sunil Kumar Pashikanti Profile Picture
    2,195 Moderator on at
     
    This is a very common and highly practical automation scenario. You can achieve this perfectly by combining an instant trigger with OneDrive and Outlook connectors. This architecture generates the PDF dynamically and drops a staged draft directly into the shared mailbox so you can add the recipient manually.
     
    Here is the exact layout you need to build this flow:
     
    1. Trigger and File Content
    Trigger: Use For a selected file (OneDrive for Business). This allows you to launch the automation directly from the right-click menu of any document in your OneDrive web interface.
    Action 1: Add Get file content (OneDrive for Business). Pass the dynamic content File identifier from the trigger into the Id field of this action.
     
    2. Convert and Archive
    Action 2: Add Convert file (Preview) (OneDrive for Business). Pass your File identifier into the file field, and set the Target type to PDF.
    Action 3: Add Create file (OneDrive for Business). Choose your target archive folder. For the File Name, use an expression to safely swap the extension:
     
         concat(first(split(triggerOutputs()?['body/entity/name'], '.docx')), '.pdf').
     
    For the File Content, select the File content output from the conversion step.
     
    3. Stage the Shared Mailbox Draft
    Action 4: Add Create draft email (V2) (Office 365 Outlook).
    • Click Show advanced options or expand the advanced parameters panel.
    • Find the Original Mailbox Address field and enter the exact email address of your shared mailbox (Note: Your account must have Full Access or Send As permissions to this mailbox).
    • Leave the To field completely blank so you can fill it in manually later.
    • In the Attachments grid at the bottom, enter your PDF filename for the attachment name, and pass the File content from your conversion step into the attachment content field.
    Once saved, simply right-click any Word document in your OneDrive, select your flow from the Automate menu, and a fully formed draft will instantly appear in your shared mailbox drafts folder ready for your final manual review.
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

    Sunil Kumar Pashikanti, Moderator
    Blog: https://sunilpashikanti.com/posts/

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 462

#2
Vish WR Profile Picture

Vish WR 256

#3
David_MA Profile Picture

David_MA 242 Super User 2026 Season 1

Last 30 days Overall leaderboard