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 / Help Needed: Issue wit...
Power Automate
Unanswered

Help Needed: Issue with Email Attachment in Power Automate Workflow

(0) ShareShare
ReportReport
Posted on by 4

Hello everyone,

I'm encountering an issue with a Microsoft Power Automate workflow where recipients are unable to open an email attachment sent via the workflow. I would greatly appreciate any guidance or suggestions from the community. Here's a brief overview of the problem:

Issue Description: In my workflow, I'm using the SendEmailV2 action to send an email with an attached file. The email is sent successfully, and the attachment appears to be included, but recipients are unable to open the attached file.

PatYip_0-1701170304078.png

 

Workflow Configuration: Here's the relevant part of my JSON configuration:

 

 

{
 "type": "OpenApiConnection",
 "inputs": {
 "parameters": {
 "emailMessage/To": "example@example.com",
 "emailMessage/Subject": "testing",
 "emailMessage/Body": "<p>testing</p>",
 "emailMessage/Attachments": [
 {
 "Name": "@item()?['{FilenameWithExtension}']",
 "ContentBytes": "@{base64(body('Get_file_content'))}"
 }
 ],
 "emailMessage/Importance": "Normal"
 },
 "host": {
 "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365",
 "connection": "shared_office365",
 "operationId": "SendEmailV2"
 }
 },
 "runAfter": {
 "Get_file_content": [
 "Succeeded"
 ]
 }
}

 

 

 

I'm wondering if there's something I'm missing in the configuration or if there's a known issue with this kind of setup. Any insights, suggestions, or pointers to relevant resources would be greatly appreciated!

Thank you in advance for your help!

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @PatYip 

    Everything seems fine. Have you tried with different files? And are they big files? If so, you can try to add a delay action (30 seconds or a minute) and then try to send the email.

    Hope it helps!

    Ferran

  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    Hi @PatYip

     

    Remove the base64 of your formula and try again, since the file is already in base 64. You can check MS documentation on this here: https://learn.microsoft.com/en-us/microsoft-365/community/power-automate-send-sharepoint-files-as-attachments

     

    Heartholme_1-1701172470736.png

     

    ✔ Marking my post as a solution not only confirms that your question has been answered, but also helps others find solutions to similar problems.
    By doing so, you'll be making a valuable contribution to the community.

    Best Regards
    Heartholme

  • fchopo Profile Picture
    8,003 Moderator on at

    I've checked this out, and @Heartholme is absolutely right! 👏

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard