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 / Send email with PDF at...
Power Automate
Answered

Send email with PDF attachment from SharePoint Library

(0) ShareShare
ReportReport
Posted on by

I've built a flow that creates a list item from a PowerApp, populates a Word template, converts this to a PDF (this all works OK).

 

I want the next step to attach this PDF to an email using Send an email (V2). I did have this working but now can't work out the correct fields to add into the 'Attachments' section to have it attach correctly. The email sends OK and does attach what looks like a PDF but won't open. Any help would be great.

Bonniedog2_0-1700028786922.png

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @Bonniedog2 ,

     

    I've made a test for your reference :

    vbofengmsft_0-1700029871611.png

     

    vbofengmsft_1-1700029905538.png

    vbofengmsft_2-1700029931734.png

     

     

    Best Regards,

    Bof

     

  • Bonniedog2 Profile Picture
    on at

    Thanks for the response. My flow creates a Word doc in a SharePoint Library and then converts it to a PDF in the same library. This works OK - I see both docs in the Library (this PDF opens correctly). In the 'Content' field of 'Attachments' I've used dynamic content 'body/Id' which attaches what looks like a PDF but when trying to open Reader, comes up with an error - 'can't open, may be damaged (emailed and wasn't correctly decoded)'. I wan't to keep the flow as is, but need to put the correct details in the 'Content' field. Thanks

  • v-bofeng-msft Profile Picture
    on at

    Hi @Bonniedog2 ,

     

    Could you please show me your flow?

     

    Best Regards,
    Bof

  • Bonniedog2 Profile Picture
    on at

    Below is the flow:

    Bonniedog2_0-1700099824234.png

    Below is the details for the 'Create PDF' step (this works correctly and creates a correct PDF:

    Bonniedog2_1-1700099860899.png

    Details in the 'Send an email' step:

    Bonniedog2_2-1700099901575.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Bonniedog2 ,

     

    The create file action do not return file content , please try:

    vbofengmsft_0-1700100988400.png

     

    Best Regards,

    Bof

     

  • Bonniedog2 Profile Picture
    on at
    Spoiler (Highlight to read)
    Thanks for your patience Bof - this is working perfectly now.
    Thanks for your patience Bof - this is working perfectly now.

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard