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 / Power Automate, send e...
Power Automate
Suggested Answer

Power Automate, send email from sharepoint with a PDF attachment , is blank

(1) ShareShare
ReportReport
Posted on by 10
I have created the following flow; for a selected row in excel, send an email with a selected PDF file from SharePoint, everything works, the attachment file is correct , but when I open the PDF it is a blank document? what can I add to my flow to fix it? I have attached the flow I created? can you assist, thank you very much Ange
 
My Flow.png
Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    Is IT a list or a document library (in Sharepoint)
     
    I recently did the Same with get Attachments and get Attachments content and then appand to variable
     
    I can Show una screeenshot in litle bit over an
  • Ange Lyons Profile Picture
    10 on at
    Thanks @mmbr1606 
     
    The PDF are coming from a document library in Sharepoint. 
     
    Thank you
    Ange
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    hey
     
     
    thanks for your answer.
     
    here is what i do from a list item:
     
    i dont know if you can match this 1:1 to a document library, but what you can try is this video:
     
     
    is it a single attachment or can it be multiple aswell? if its just a single one you wont really need the array variable.
    if it can contain multiple ones a variable would be needed. what you can also try is instead of using file name with extension, maybe just the name and write .pdf at the end for example (like shown in my screenshot)
     
    cheers
     
  • Ange Lyons Profile Picture
    10 on at
    @mmbr1606 thank you for your reply, it will only be the one PDF...very frustrating, i clicked on the video but it's not quite what i need, its when i click on a row in excel, send a file from sharepoint, the file name is on the data base.
     
    Hope you can help 
     
    Thank you
    Andrea.
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    HI
     
    You are definitely doing it in a more complex way.
     
    1. You should only expect one file back, so doing a loop is unnecessary. 
    2. You should change your Send back, to take the Name and Bytes
    3. Use the File Content dynamic property from the Get File Contents
    As Body is not the accurate thing to use to get the content
     
    4. Use the File Name dynamic property to get the name
     
     
    So instead of a loop do this
    after you Get Files Properties Only
    Add a condition
    check if the length(dynamic body/value property from the Get Files Property) = 1
    In the yes side
    You will then send your email, using the Dynamic Propeties I said above.
     
    That will limit your chances of failure and should solve your problem, that or you have more details than you are saying hehe
     
  • Ange Lyons Profile Picture
    10 on at
    @RLMike , can you please step the how to process out for me? 

    I’m don’t completely understand your what your suggesting  , but I think you are correct in saying k have made  it to complex for the outcome , I’m  new to power automate so I would appreciate any help I can get 
     
    thank you very much 
    Ange 
     
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi
     
    Sorry this storm is crushing us again, I will respond in a few hours.

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard