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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Emailing PDF that was ...
Power Automate
Unanswered

Emailing PDF that was converted from Word

(0) ShareShare
ReportReport
Posted on by 8

Hi everyone, 

 

I am trying to create a flow that follow these actions/steps: 

 

1. Forms - when new response is submitted (trigger)

2. Forms - get response details 

3. Excel - add a row into a table 

4. Word - populate a microsoft word template 

5. One Drive - create file 

6. One Drive - convert file (to PDF)

7. One Drive - create file (the PDF)

8. Outlook 365 - Send an email (with attachment from step 6 - the converted PDF file)

 

Everything works great, except the PDF attachment that is sent in the email is corrupted/blank. However, the one saved in the One Drive folder is filled out correctly and opens perfectly fine in PDF. 

 

I feel like the email needs to include the created file from step 7 but i'm not seeing how to attach that to the email and everything online is pointing me to use the content from the convert file in step 6. 

 

Any ideas? 

Categories:
I have the same question (0)
  • wyattdave Profile Picture
    410 Moderator on at

    Hi @preynolds1 ,

     

    try using the Outlook get file content on the new file you created and pass that into the attachment

     


    >--------------------------------------------
    If this helped solve your question please mark it as the solution.

    I also do a weekly Power Platform blog at https://dev.to/wyattdave

  • preynolds1 Profile Picture
    8 on at

    Hi,

     

    Does it look like I have it set up correctly? Because this didn't work email - it still emailed a blank pdf. 

    preynolds1_0-1715963397149.png

     

  • wyattdave Profile Picture
    410 Moderator on at

    That's strange if it is completed correctly in the OneDrive file but not in Outlook. Try adding a delay of a few seconds incase it is getting content before its is saved correctly (long shot but worth a try).


    >--------------------------------------------
    If this helped solve your question please mark it as the solution.

    I also do a weekly Power Platform blog at https://dev.to/wyattdave

  • Verified answer
    Ntulikid Profile Picture
    29 on at

    Hi 

     

    I hope this will help:

     

    In step 7, instead of having a one drive - create file, use a one drive - get file content using path (the File Path should be similar to that in step 5). 

    On the outlook send email(V2), the attachment content should have the dynamic content which is File Content from the get file content using path.

     

    This should work,

     

    If the pdf is still corrupted, switch power automate to classic mode. This can be achieved by toggling the switch on the top right (right side of new designer) and retry it again

    ---------------------------------------------------

    If this helped solve your question please mark it as the solution

  • preynolds1 Profile Picture
    8 on at

    Thank you! 

     

    I think the issue was the "new designer" as soon as I toggled to the classic mode, doing what I did originally started working. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard