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 / 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
 
Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 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,605 Super User 2025 Season 2 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,433 Super User 2025 Season 2 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,433 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard