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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint Library PDF...
Power Automate
Unanswered

Sharepoint Library PDF attachment to email won't open

(0) ShareShare
ReportReport
Posted on by 19

I have a pretty complex workflow, so I'll focus on the section that isn't working. 

 

I have a PDF document saved in a Sharepoint library. I want to get that file and add it as an attachment to an email. Here's how I'm getting the file:

 

get file.png

and this is the email configuration:

email.png

For name, I'm using the "filename" dynamic content from the "get metadata" command. For the body, I'm using the "file content" from the "get file content" command. 

 

The flow completes and it appears to work, as the email gets sent with the attachment.

aisabel_0-1709063951984.png

But when I try to click on the attachment to open, I get this error:

aisabel_1-1709063975376.png

 

I've searched for this issue and most of the results I found require getting from sharepoint list (which I don't want to do) or don't solve my problem. Any help would be appreciated!

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at
    Re: Sharepoint Library PDF attachment to email won't open

    @aisabel In the Attachments Content, you need to insert the File Content from the Get File Content action. 

    creativeopinion_0-1709064409946.png

     

    For more flow troubleshooting tips—check out this YT Tutorial: 5 Power Automate Troubleshooting FAQs and Helpful Tips for Creating Better Flows

     

    In this tutorial I cover:

     How to troubleshoot a false Condition action result

     How to get dynamic content when it isn’t selectable from the list of dynamic content

     How to troubleshoot an Apply to Each action that isn’t looping through

     How to troubleshoot a skipped Apply to Each action

     How to troubleshoot a Filter Query

     How to use a SharePoint yes/no column in a Filter Query

     How to use Compose actions to troubleshoot a Power Automate flow

    How to troubleshoot multiple emails being sent

     How to troubleshoot multiple Teams messages being sent

     

    ----

     

    You might also find this YT Tutorial helpful: How to Send SharePoint List Attachments 📎 via Email with Power Automate

     

    Please note: I'm using the Classic Designer in this tutorial—the new one still has a few bugs.

    In this Microsoft Power Automate tutorial, I’ll cover how to create a Power Automate flow to send SharePoint list attachments in an email.

     

    This flow will check the SharePoint list to see if an item is marked as Ready to Send and has attachments. I will also cover how to combine multiple attachments to send in a single email.

     

    IN THIS VIDEO:

     How to attach a single SharePoint list attachment to an email

     How to use the Filter Query to Filter SharePoint List Items by a Single Choice Column

     How to use the Filter Array action to Filter SharePoint List Items that have an Attachment

     How to use turn on Pagination and Set a Threshold in the Get Items action

     How to us the Top Count field in the Get Items action

     How to use the Get Attachments Action

     How to avoid the Apply to Each Action

     How to use the Get File Content Action

     How to Edit an Expression

     How to use the Compose Action

     How to Get Multiple SharePoint Attachments

     How to use the Append to Array Variable Action

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response! If you're feeling generous— ️  Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
     

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard