
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:
and this is the email configuration:
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.
But when I try to click on the attachment to open, I get this error:
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!
@aisabel In the Attachments Content, you need to insert the File Content from the Get File Content action.
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 |